summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_main.cpp
diff options
context:
space:
mode:
authorCheahuychou Mao <mao.cheahuychou@gmail.com>2022-10-04 17:58:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-04 18:45:56 +0000
commite0b473d02e7a1effbf7b5636443f21cc6fa26fe7 (patch)
treeabc493e7cb69bc479506c6ceb5252c00f2e6ef05 /src/mongo/db/mongod_main.cpp
parenta9ad9a3b5613437353e493fe265bd8f987a3b87b (diff)
downloadmongo-e0b473d02e7a1effbf7b5636443f21cc6fa26fe7.tar.gz
SERVER-69740 Make config server track query analysis configurations in memory
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r--src/mongo/db/mongod_main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp
index c8048e567f2..3508395ff16 100644
--- a/src/mongo/db/mongod_main.cpp
+++ b/src/mongo/db/mongod_main.cpp
@@ -139,6 +139,7 @@
#include "mongo/db/s/migration_util.h"
#include "mongo/db/s/op_observer_sharding_impl.h"
#include "mongo/db/s/periodic_sharded_index_consistency_checker.h"
+#include "mongo/db/s/query_analysis_op_observer.h"
#include "mongo/db/s/rename_collection_participant_service.h"
#include "mongo/db/s/resharding/resharding_coordinator_service.h"
#include "mongo/db/s/resharding/resharding_donor_service.h"
@@ -1151,6 +1152,8 @@ void setUpObservers(ServiceContext* serviceContext) {
std::make_unique<OpObserverImpl>(std::make_unique<OplogWriterImpl>()));
opObserverRegistry->addObserver(std::make_unique<ConfigServerOpObserver>());
opObserverRegistry->addObserver(std::make_unique<ReshardingOpObserver>());
+ opObserverRegistry->addObserver(
+ std::make_unique<analyze_shard_key::QueryAnalysisOpObserver>());
} else {
opObserverRegistry->addObserver(
std::make_unique<OpObserverImpl>(std::make_unique<OplogWriterImpl>()));