diff options
author | Gregory Noma <gregory.noma@gmail.com> | 2020-02-13 16:38:33 -0500 |
---|---|---|
committer | Gregory Noma <gregory.noma@gmail.com> | 2020-02-18 17:13:19 -0500 |
commit | a68508f9922ad163ff98f8fa13953b1efe9d57d0 (patch) | |
tree | 1ead40c94d7da611cbb6cd36a342cf76ffe2e452 /src/mongo/db/db.cpp | |
parent | 11640b2138d40777a4b45005628b4facfba7e6b2 (diff) | |
download | mongo-46137.tar.gz |
SERVER-46137 Implement ReplicaSetNodeProcessInterface methods needed for $merge46137
Diffstat (limited to 'src/mongo/db/db.cpp')
-rw-r--r-- | src/mongo/db/db.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp index b7f1c0945c8..cc005a763ab 100644 --- a/src/mongo/db/db.cpp +++ b/src/mongo/db/db.cpp @@ -968,9 +968,11 @@ void setUpReplication(ServiceContext* serviceContext) { SecureRandom().nextInt64()); // Only create a ReplicaSetNodeExecutor if sharding is disabled and replication is enabled. // Note that sharding sets up its own executors for scheduling work to remote nodes. - if (serverGlobalParams.clusterRole == ClusterRole::None && replCoord->isReplEnabled()) + if (serverGlobalParams.clusterRole == ClusterRole::None && replCoord->isReplEnabled()) { ReplicaSetNodeProcessInterface::setReplicaSetNodeExecutor( serviceContext, makeReplicaSetNodeExecutor(serviceContext)); + ReplicaSetNodeProcessInterface::getReplicaSetNodeExecutor(serviceContext)->startup(); + } repl::ReplicationCoordinator::set(serviceContext, std::move(replCoord)); repl::setOplogCollectionName(serviceContext); |