summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-01-02 17:17:06 -0500
committerBenety Goh <benety@mongodb.com>2019-01-02 17:17:06 -0500
commitb12400c3a732190c341d7ab99f44e35742e322d6 (patch)
tree4555e4dd343dd6189916c3089d2bb23635f11b24 /src/mongo/dbtests
parentc3e78c91c3a86fd6aba44a0b3c97062f55512f56 (diff)
downloadmongo-b12400c3a732190c341d7ab99f44e35742e322d6.tar.gz
SERVER-37643 add IndexBuildsCoordinator to dbtest initialization
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r--src/mongo/dbtests/SConscript1
-rw-r--r--src/mongo/dbtests/framework.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/dbtests/SConscript b/src/mongo/dbtests/SConscript
index 4bb9583e40d..aef0ef41c3b 100644
--- a/src/mongo/dbtests/SConscript
+++ b/src/mongo/dbtests/SConscript
@@ -28,6 +28,7 @@ env.Library(
LIBDEPS=[
'$BUILD_DIR/mongo/db/catalog/catalog_impl',
'$BUILD_DIR/mongo/db/dbdirectclient',
+ '$BUILD_DIR/mongo/db/index_builds_coordinator_mongod',
'$BUILD_DIR/mongo/db/op_observer',
'$BUILD_DIR/mongo/db/service_context_d',
'$BUILD_DIR/mongo/db/s/sharding_runtime_d',
diff --git a/src/mongo/dbtests/framework.cpp b/src/mongo/dbtests/framework.cpp
index 2a48e0ee11d..46b7a13d695 100644
--- a/src/mongo/dbtests/framework.cpp
+++ b/src/mongo/dbtests/framework.cpp
@@ -43,6 +43,7 @@
#include "mongo/db/client.h"
#include "mongo/db/concurrency/lock_state.h"
#include "mongo/db/dbdirectclient.h"
+#include "mongo/db/index_builds_coordinator_mongod.h"
#include "mongo/db/op_observer_registry.h"
#include "mongo/db/s/sharding_state.h"
#include "mongo/db/service_context.h"
@@ -106,6 +107,8 @@ int runDbTests(int argc, char** argv) {
initializeStorageEngine(globalServiceContext, StorageEngineInitFlags::kNone);
DatabaseHolder::set(globalServiceContext, std::make_unique<DatabaseHolderImpl>());
+ IndexBuildsCoordinator::set(globalServiceContext,
+ std::make_unique<IndexBuildsCoordinatorMongod>());
auto registry = stdx::make_unique<OpObserverRegistry>();
registry->addObserver(stdx::make_unique<UUIDCatalogObserver>());
globalServiceContext->setOpObserver(std::move(registry));