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

Method resetImpl

fdbclient/NativeAPI.actor.cpp:5821–5831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5819}
5820
5821void Transaction::resetImpl(bool generateNewSpan) {
5822 flushTrLogsIfEnabled();
5823 trState = trState->cloneAndReset(createTrLogInfoProbabilistically(trState->cx), generateNewSpan);
5824 tr = CommitTransactionRequest(trState->spanContext);
5825 readVersion = Future<Version>();
5826 metadataVersion = Promise<Optional<Key>>();
5827 extraConflictRanges.clear();
5828 commitResult = Promise<Void>();
5829 committing = Future<Void>();
5830 cancelWatches();
5831}
5832
5833TagSet const& Transaction::getTags() const {
5834 return trState->options.tags;

Callers

nothing calls this directly

Calls 3

cloneAndResetMethod · 0.80
clearMethod · 0.65

Tested by

no test coverage detected