diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2019-08-06 15:50:49 -0400 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2019-08-06 15:50:49 -0400 |
commit | 0c14c2474ead6c89687685a3413506ad23e309a8 (patch) | |
tree | ac6e3ba10859e7a7d427e259ce4b395a3e35d58d | |
parent | f7d070aebfeb0be666f2f5220c970aa3bd83621e (diff) | |
download | mongo-0c14c2474ead6c89687685a3413506ad23e309a8.tar.gz |
SERVER-42653 Always waitUntilDurable when writing lastVote document.
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp index 71891b244b8..27cb772d098 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp +++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp @@ -646,11 +646,11 @@ Status ReplicationCoordinatorExternalStateImpl::storeLocalLastVoteDocument( Helpers::putSingleton(txn, lastVoteCollectionName, lastVoteObj); } wunit.commit(); - return Status::OK(); } MONGO_WRITE_CONFLICT_RETRY_LOOP_END( txn, "save replica set lastVote", lastVoteCollectionName); txn->recoveryUnit()->waitUntilDurable(); + return Status::OK(); } catch (const DBException& ex) { return ex.toStatus(); } |