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

Method get

src/state/leveldb.cpp:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133Future<Option<Entry>> LevelDBStorageProcess::get(const string& name)
134{
135 if (error.isSome()) {
136 return Failure(error.get());
137 }
138
139 Try<Option<Entry>> option = read(name);
140
141 if (option.isError()) {
142 return Failure(option.error());
143 }
144
145 return option.get();
146}
147
148
149Future<bool> LevelDBStorageProcess::set(

Callers 3

namesMethod · 0.45
setMethod · 0.45
expungeMethod · 0.45

Calls 6

FailureClass · 0.85
errorMethod · 0.65
readFunction · 0.50
dispatchFunction · 0.50
isSomeMethod · 0.45
isErrorMethod · 0.45

Tested by

no test coverage detected