| 1332 | } |
| 1333 | |
| 1334 | int 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 | |
| 1347 | int dump_attrs( |
| 1348 | Formatter *formatter, ghobject_t hoid, |