summaryrefslogtreecommitdiff
path: root/src/mongo/db/mongod_main.cpp
diff options
context:
space:
mode:
authorGrace Luong <grace.luong@mongodb.com>2020-08-03 22:28:46 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-08-19 17:04:39 +0000
commit5b5ba520338a8c0b8f36b60042bfdeb40579e1a1 (patch)
treed117390a4d07ab1fa3798402c7d1cc2fd3b33f20 /src/mongo/db/mongod_main.cpp
parent3e0366d2b1ff45a3ea91b63793743023479d9c4a (diff)
downloadmongo-5b5ba520338a8c0b8f36b60042bfdeb40579e1a1.tar.gz
SERVER-47667: Create FCVOpObserver
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r--src/mongo/db/mongod_main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp
index d49f70d4440..1d5673b25bf 100644
--- a/src/mongo/db/mongod_main.cpp
+++ b/src/mongo/db/mongod_main.cpp
@@ -77,6 +77,7 @@
#include "mongo/db/dbhelpers.h"
#include "mongo/db/dbmessage.h"
#include "mongo/db/exec/working_set_common.h"
+#include "mongo/db/fcv_op_observer.h"
#include "mongo/db/free_mon/free_mon_mongod.h"
#include "mongo/db/ftdc/ftdc_mongod.h"
#include "mongo/db/global_settings.h"
@@ -984,6 +985,7 @@ void setUpObservers(ServiceContext* serviceContext) {
opObserverRegistry->addObserver(std::make_unique<AuthOpObserver>());
opObserverRegistry->addObserver(
std::make_unique<repl::PrimaryOnlyServiceOpObserver>(serviceContext));
+ opObserverRegistry->addObserver(std::make_unique<FcvOpObserver>());
setupFreeMonitoringOpObserver(opObserverRegistry.get());