diff options
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp b/src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp index e0c14764474..ade56675c51 100644 --- a/src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp +++ b/src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp @@ -296,12 +296,16 @@ void ReplicationCoordinatorImpl::_writeLastVoteForMyElection( auto opCtx = cc().makeOperationContext(); // Any writes that occur as part of an election should not be subject to Flow Control. opCtx->setShouldParticipateInFlowControl(false); + LOGV2(6015300, + "Storing last vote document in local storage for my election", + "lastVote"_attr = lastVote); return _externalState->storeLocalLastVoteDocument(opCtx.get(), lastVote); }(); stdx::lock_guard<Latch> lk(_mutex); LoseElectionDryRunGuardV1 lossGuard(this); if (status == ErrorCodes::CallbackCanceled) { + LOGV2(6015301, "Callback for storing last vote got cancelled"); return; } |