diff options
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/sharding_mongod_test_fixture.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/s/sharding_mongod_test_fixture.cpp b/src/mongo/s/sharding_mongod_test_fixture.cpp index fe85fdab89b..9cac75212fd 100644 --- a/src/mongo/s/sharding_mongod_test_fixture.cpp +++ b/src/mongo/s/sharding_mongod_test_fixture.cpp @@ -48,6 +48,7 @@ #include "mongo/db/repl/repl_settings.h" #include "mongo/db/repl/replication_coordinator.h" #include "mongo/db/repl/replication_coordinator_mock.h" +#include "mongo/db/repl/storage_interface_mock.h" #include "mongo/db/service_context_noop.h" #include "mongo/executor/network_interface_mock.h" #include "mongo/executor/task_executor_pool.h" @@ -123,6 +124,10 @@ void ShardingMongodTestFixture::setUp() { repl::ReplicationCoordinator::set(service, std::move(replCoordPtr)); + auto storagePtr = stdx::make_unique<repl::StorageInterfaceMock>(); + storagePtr->initializeRollbackID(_opCtx.get()); + repl::StorageInterface::set(service, std::move(storagePtr)); + service->setOpObserver(stdx::make_unique<OpObserverImpl>()); repl::setOplogCollectionName(); repl::createOplog(_opCtx.get()); |