MCPcopy Create free account
hub / github.com/apache/mesos / names

Method names

src/state/leveldb.cpp:110–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110Future<std::set<string>> LevelDBStorageProcess::names()
111{
112 if (error.isSome()) {
113 return Failure(error.get());
114 }
115
116 std::set<string> results;
117
118 leveldb::Iterator* iterator = db->NewIterator(leveldb::ReadOptions());
119
120 iterator->SeekToFirst();
121
122 while (iterator->Valid()) {
123 results.insert(iterator->key().ToString());
124 iterator->Next();
125 }
126
127 delete iterator;
128
129 return results;
130}
131
132
133Future<Option<Entry>> LevelDBStorageProcess::get(const string& name)

Callers

nothing calls this directly

Calls 5

FailureClass · 0.85
insertMethod · 0.80
dispatchFunction · 0.50
isSomeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected