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

Function get_data

src/tools/ceph_objectstore_tool.cc:1334–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1332}
1333
1334int get_data(ObjectStore *store, coll_t coll, ghobject_t hoid,
1335 ObjectStore::Transaction *t, bufferlist &bl)
1336{
1337 auto ebliter = bl.cbegin();
1338 data_section ds;
1339 ds.decode(ebliter);
1340
1341 if (debug)
1342 cerr << "\tdata: offset " << ds.offset << " len " << ds.len << std::endl;
1343 t->write(coll, hoid, ds.offset, ds.len, ds.databl);
1344 return 0;
1345}
1346
1347int dump_attrs(
1348 Formatter *formatter, ghobject_t hoid,

Callers 9

get_objectMethod · 0.85
executeMethod · 0.85
executeMethod · 0.85
xml_endMethod · 0.85
get_dataMethod · 0.85
expect_get_dataMethod · 0.85
expect_committedMethod · 0.85
TEST_FFunction · 0.85
encodeMethod · 0.85

Calls 3

cbeginMethod · 0.45
decodeMethod · 0.45
writeMethod · 0.45

Tested by 3

expect_get_dataMethod · 0.68
expect_committedMethod · 0.68
TEST_FFunction · 0.68