summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt dannenberg <matt.dannenberg@10gen.com>2015-10-13 11:14:48 -0400
committermatt dannenberg <matt.dannenberg@10gen.com>2015-10-13 11:25:11 -0400
commit65afa27bd884f852a5ee8ae3e7174d1f648ae4a1 (patch)
tree5cffef9693751ac63452d6853513e06c96e554c9
parent369039b05548ab65c9bda40c192b9797c40fe51f (diff)
downloadmongo-65afa27bd884f852a5ee8ae3e7174d1f648ae4a1.tar.gz
SERVER-20778 make signalDrainComplete comment align with signalDrainComplete code
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.cpp b/src/mongo/db/repl/replication_coordinator_impl.cpp
index dc2cb75c7d5..aac23b98367 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl.cpp
@@ -606,10 +606,10 @@ void ReplicationCoordinatorImpl::signalDrainComplete(OperationContext* txn) {
// _isWaitingForDrainToComplete, set the flag allowing non-local database writes and
// drop the mutex. At this point, no writes can occur from other threads, due to the
// global exclusive lock.
- // 4.) Drop the global exclusive lock.
- // 5.) Drop all temp collections.
- // 6.) Log transition to primary in the oplog and set that OpTime as the floor for what we will
+ // 4.) Drop all temp collections.
+ // 5.) Log transition to primary in the oplog and set that OpTime as the floor for what we will
// consider to be committed.
+ // 6.) Drop the global exclusive lock.
//
// Because replicatable writes are forbidden while in drain mode, and we don't exit drain
// mode until we have the global exclusive lock, which forbids all other threads from making