From f304776caf5e2113347c3ea52a05eee396b9ce66 Mon Sep 17 00:00:00 2001 From: Lingzhi Deng Date: Tue, 14 Jan 2020 16:13:48 +0000 Subject: SERVER-35407: Refuse to start threads and initial sync if replication is shutting down (cherry picked from commit 9eb31a596db5cdf94e9660ba9a8eb178f483e329) --- src/mongo/db/repl/replication_coordinator_external_state_impl.cpp | 1 + 1 file changed, 1 insertion(+) 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"; -- cgit v1.2.1