MCPcopy Create free account
hub / github.com/apple/foundationdb / readValue

Method readValue

fdbserver/KeyValueStoreMemory.actor.cpp:201–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 Future<Optional<Value>> readValue(KeyRef key, IKeyValueStore::ReadType, Optional<UID> debugID) override {
202 if (recovering.isError())
203 throw recovering.getError();
204 if (!recovering.isReady())
205 return waitAndReadValue(this, key);
206
207 auto it = data.find(key);
208 if (it == data.end())
209 return Optional<Value>();
210 return Optional<Value>(it.getValue());
211 }
212
213 Future<Optional<Value>> readValuePrefix(KeyRef key,
214 int maxLength,

Calls 6

isErrorMethod · 0.45
getErrorMethod · 0.45
isReadyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected