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

Method getReadVersion

fdbclient/MultiVersionTransaction.actor.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61ThreadFuture<Version> DLTransaction::getReadVersion() {
62 FdbCApi::FDBFuture* f = api->transactionGetReadVersion(tr);
63
64 return toThreadFuture<Version>(api, f, [](FdbCApi::FDBFuture* f, FdbCApi* api) {
65 int64_t version;
66 FdbCApi::fdb_error_t error = api->futureGetInt64(f, &version);
67 ASSERT(!error);
68 return version;
69 });
70}
71
72ThreadFuture<Optional<Value>> DLTransaction::get(const KeyRef& key, bool snapshot) {
73 FdbCApi::FDBFuture* f = api->transactionGet(tr, key.begin(), key.size(), snapshot);

Callers

nothing calls this directly

Calls 3

getTransactionFunction · 0.85
abortableFutureFunction · 0.85
getReadVersionMethod · 0.65

Tested by

no test coverage detected