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

Function flush_omap_batch

src/tools/ceph_objectstore_tool.cc:838–844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836
837template <class F>
838void flush_omap_batch(map<string, bufferlist> &oset, int& mapcount, F f)
839{
840 ceph_assert(oset.size() <= OMAP_BATCH_SIZE);
841 mapcount += oset.size();
842 f(oset);
843 oset.clear();
844}
845
846int ObjectStoreTool::export_file(ObjectStore *store, coll_t cid, ghobject_t &obj, bool force)
847{

Callers 1

export_fileMethod · 0.85

Calls 3

fFunction · 0.85
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected