summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r--src/mongo/db/mongod_main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp
index eb212db69e0..80fe723c81e 100644
--- a/src/mongo/db/mongod_main.cpp
+++ b/src/mongo/db/mongod_main.cpp
@@ -161,6 +161,7 @@
#include "mongo/db/service_entry_point_mongod.h"
#include "mongo/db/session_catalog.h"
#include "mongo/db/session_killer.h"
+#include "mongo/db/set_change_stream_state_coordinator.h"
#include "mongo/db/startup_recovery.h"
#include "mongo/db/startup_warnings_mongod.h"
#include "mongo/db/stats/counters.h"
@@ -349,6 +350,9 @@ void registerPrimaryOnlyServices(ServiceContext* serviceContext) {
}
}
+ // TODO SERVER-65950 create 'SetChangeStreamStateCoordinatorService' only in the serverless.
+ services.push_back(std::make_unique<SetChangeStreamStateCoordinatorService>(serviceContext));
+
for (auto& service : services) {
registry->registerService(std::move(service));
}
@@ -1549,6 +1553,7 @@ int mongod_main(int argc, char* argv[]) {
ReadWriteConcernDefaults::create(service, readWriteConcernDefaultsCacheLookupMongoD);
ChangeStreamOptionsManager::create(service);
+ // TODO SERVER-65950 create 'ChangeStreamChangeCollectionManager' only in the serverless.
ChangeStreamChangeCollectionManager::create(service);
#if defined(_WIN32)