diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2020-08-12 06:44:01 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-17 16:31:03 +0000 |
commit | f37ab825928d30d911f419b9995658866bbe43e4 (patch) | |
tree | 0b5a4ff6e741e48836e43f2a644215e1da4e80d6 /src/mongo/db/s/transaction_coordinator.cpp | |
parent | e1daee88b3f4ef640e677143d210432e02a8fac2 (diff) | |
download | mongo-f37ab825928d30d911f419b9995658866bbe43e4.tar.gz |
SERVER-49921 Optimised persistence and recovery of the VectorClock
Diffstat (limited to 'src/mongo/db/s/transaction_coordinator.cpp')
-rw-r--r-- | src/mongo/db/s/transaction_coordinator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/s/transaction_coordinator.cpp b/src/mongo/db/s/transaction_coordinator.cpp index a96b89df610..802995046d7 100644 --- a/src/mongo/db/s/transaction_coordinator.cpp +++ b/src/mongo/db/s/transaction_coordinator.cpp @@ -133,10 +133,7 @@ TransactionCoordinator::TransactionCoordinator(OperationContext* operationContex // either with success or error and the scheduled deadline task above has been joined. std::move(kickOffCommitPF.future) .then([this] { - // TODO SERVER-49921 Optimize wait for vector clock persistence - // Persist the vector clock in order to ensure casual consistency on topologyTime - auto vectorClock = VectorClock::get(_serviceContext); - return vectorClock->persist(); + return VectorClockMutable::get(_serviceContext)->waitForDurableTopologyTime(); }) .thenRunOn(Grid::get(_serviceContext)->getExecutorPool()->getFixedExecutor()) .then([this] { |