From f37ab825928d30d911f419b9995658866bbe43e4 Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 12 Aug 2020 06:44:01 -0400 Subject: SERVER-49921 Optimised persistence and recovery of the VectorClock --- src/mongo/db/s/transaction_coordinator.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mongo/db/s/transaction_coordinator.cpp') 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] { -- cgit v1.2.1