diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-08-10 19:50:05 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-12 17:52:42 +0000 |
commit | d598744856190df68f36c3f7a88decd30fa8e912 (patch) | |
tree | 7d0b70cf496642739ada7d5af09157808c7a4673 /src/mongo/db/mongod_main.cpp | |
parent | b018ba7b5bfeea26b1df08fc8bf78e9665718e92 (diff) | |
download | mongo-d598744856190df68f36c3f7a88decd30fa8e912.tar.gz |
SERVER-50140: Initial sync cannot survive unclean restart of the sync source
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r-- | src/mongo/db/mongod_main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp index 2925d4762c5..8d98fa031dd 100644 --- a/src/mongo/db/mongod_main.cpp +++ b/src/mongo/db/mongod_main.cpp @@ -594,7 +594,7 @@ ExitCode _initAndListen(ServiceContext* serviceContext, int listenPort) { uassert(ErrorCodes::BadValue, str::stream() << "Cannot use queryableBackupMode in a replica set", !replCoord->isReplEnabled()); - replCoord->startup(startupOpCtx.get()); + replCoord->startup(startupOpCtx.get(), lastStorageEngineShutdownState); } if (!storageGlobalParams.readOnly) { @@ -645,7 +645,7 @@ ExitCode _initAndListen(ServiceContext* serviceContext, int listenPort) { ReplicaSetNodeProcessInterface::getReplicaSetNodeExecutor(serviceContext)->startup(); } - replCoord->startup(startupOpCtx.get()); + replCoord->startup(startupOpCtx.get(), lastStorageEngineShutdownState); if (getReplSetMemberInStandaloneMode(serviceContext)) { LOGV2_WARNING_OPTIONS( 20547, |