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

Method get

src/test/ObjectMap/KeyValueDBMemory.cc:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178};
179
180int KeyValueDBMemory::get(const string &prefix,
181 const std::set<string> &key,
182 map<string, bufferlist> *out) {
183 if (!exists_prefix(prefix))
184 return 0;
185
186 for (std::set<string>::const_iterator i = key.begin();
187 i != key.end();
188 ++i) {
189 pair<string,string> k(prefix, *i);
190 if (db.count(k))
191 (*out)[*i] = db[k];
192 }
193 return 0;
194}
195
196int KeyValueDBMemory::get_keys(const string &prefix,
197 const std::set<string> &key,

Callers 15

TESTFunction · 0.45
TESTFunction · 0.45
mainFunction · 0.45
TESTFunction · 0.45
hit_miss_ratioMethod · 0.45
hit_miss_ratioMethod · 0.45
create_test_countersFunction · 0.45
TESTFunction · 0.45
mainFunction · 0.45
TESTFunction · 0.45
TearDownMethod · 0.45
TESTFunction · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected