summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-01-14 16:13:48 +0000
committerevergreen <evergreen@mongodb.com>2020-01-14 16:13:48 +0000
commitf304776caf5e2113347c3ea52a05eee396b9ce66 (patch)
treeec5f238992aaae10efc6f46bc086c71c68f3afc4
parent97f928dcabb5d8ca144b381dacde95337b20e405 (diff)
downloadmongo-f304776caf5e2113347c3ea52a05eee396b9ce66.tar.gz
SERVER-35407: Refuse to start threads and initial sync if replication is shutting downr4.2.3-rc0
(cherry picked from commit 9eb31a596db5cdf94e9660ba9a8eb178f483e329)
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state_impl.cpp1
1 files changed, 1 insertions, 0 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 6abca36f5d6..a4f00b90b7e 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
+++ b/src/mongo/db/repl/replication_coordinator_external_state_impl.cpp
@@ -322,6 +322,7 @@ void ReplicationCoordinatorExternalStateImpl::startThreads(const ReplSettings& s
}
if (_inShutdown) {
log() << "Not starting replication storage threads because replication is shutting down.";
+ return;
}
log() << "Starting replication storage threads";