summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-04-21 10:27:59 -0400
committerBenety Goh <benety@mongodb.com>2017-04-28 19:52:01 -0400
commit7358c66cbf77203fa0803417a4442e35f11bf3f7 (patch)
tree947ec510b25c7643e3eb8c9e948fdaa75c163888 /src/mongo/s
parent60636b4d3ae60a24c080c7250459814eef5e7c87 (diff)
downloadmongo-7358c66cbf77203fa0803417a4442e35f11bf3f7.tar.gz
SERVER-27659 Persist Rollback Id
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/sharding_mongod_test_fixture.cpp5
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());