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

Method get_keys

src/test/ObjectMap/KeyValueDBMemory.cc:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196int KeyValueDBMemory::get_keys(const string &prefix,
197 const std::set<string> &key,
198 std::set<string> *out) {
199 if (!exists_prefix(prefix))
200 return 0;
201
202 for (std::set<string>::const_iterator i = key.begin();
203 i != key.end();
204 ++i) {
205 if (db.count(make_pair(prefix, *i)))
206 out->insert(*i);
207 }
208 return 0;
209}
210
211int KeyValueDBMemory::set(const string &prefix,
212 const string &key,

Callers 7

update_authFunction · 0.45
populate_splitMethod · 0.45
insert_and_splitMethod · 0.45
fix_keyMethod · 0.45
test_clone_non_rootMethod · 0.45
can_splitMethod · 0.45
do_mergeMethod · 0.45

Calls 4

beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected