From b12400c3a732190c341d7ab99f44e35742e322d6 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Wed, 2 Jan 2019 17:17:06 -0500 Subject: SERVER-37643 add IndexBuildsCoordinator to dbtest initialization --- src/mongo/dbtests/SConscript | 1 + src/mongo/dbtests/framework.cpp | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src/mongo/dbtests') 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()); + IndexBuildsCoordinator::set(globalServiceContext, + std::make_unique()); auto registry = stdx::make_unique(); registry->addObserver(stdx::make_unique()); globalServiceContext->setOpObserver(std::move(registry)); -- cgit v1.2.1