MCPcopy Create free account
hub / github.com/ceph/ceph / share

Function share

src/include/buffer.h:1108–1118  ·  view source on GitHub ↗

copy with explicit volatile-sharing semantics

Source from the content-addressed store, hash-verified

1106
1107 // copy with explicit volatile-sharing semantics
1108 void share(const list& bl)
1109 {
1110 if (this != &bl) {
1111 clear();
1112 for (const auto& bp : bl._buffers) {
1113 _buffers.push_back(*ptr_node::create(bp).release());
1114 }
1115 _len = bl._len;
1116 _num = bl._num;
1117 }
1118 }
1119
1120#ifdef WITH_CRIMSON
1121 /// convert the bufferlist into a network packet

Callers 2

loadDirectoriesMethod · 0.50
shareMethod · 0.50

Calls 4

clearFunction · 0.70
createFunction · 0.50
push_backMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected