diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-01-14 16:13:48 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-14 16:13:48 +0000 |
commit | f304776caf5e2113347c3ea52a05eee396b9ce66 (patch) | |
tree | ec5f238992aaae10efc6f46bc086c71c68f3afc4 | |
parent | 97f928dcabb5d8ca144b381dacde95337b20e405 (diff) | |
download | mongo-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.cpp | 1 |
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"; |