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

Method getKey

fdbclient/NativeAPI.actor.cpp:5436–5445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5434}
5435
5436Future<Key> Transaction::getKey(const KeySelector& key, Snapshot snapshot) {
5437 ++trState->cx->transactionLogicalReads;
5438 ++trState->cx->transactionGetKeyRequests;
5439 if (snapshot)
5440 return ::getKey(trState, key, getReadVersion());
5441
5442 Promise<std::pair<Key, Key>> conflictRange;
5443 extraConflictRanges.push_back(conflictRange.getFuture());
5444 return getKeyAndConflictRange(trState, key, getReadVersion(), conflictRange);
5445}
5446
5447template <class GetKeyValuesFamilyRequest>
5448void increaseCounterForRequest(Database cx) {

Callers

nothing calls this directly

Calls 3

getKeyFunction · 0.50
push_backMethod · 0.45
getFutureMethod · 0.45

Tested by

no test coverage detected