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

Method setVersion

fdbclient/NativeAPI.actor.cpp:5187–5196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5185}
5186
5187void Transaction::setVersion(Version v) {
5188 trState->startTime = now();
5189 if (readVersion.isValid())
5190 throw read_version_already_set();
5191 if (v <= 0)
5192 throw version_invalid();
5193
5194 readVersion = v;
5195 trState->readVersionObtainedFromGrvProxy = false;
5196}
5197
5198Future<Optional<Value>> Transaction::get(const Key& key, Snapshot snapshot) {
5199 ++trState->cx->transactionLogicalReads;

Calls 2

nowFunction · 0.85
isValidMethod · 0.45

Tested by 2

_setupMethod · 0.36