summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/sync_tail_test_fixture.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-08-07 12:04:10 -0400
committerJudah Schvimer <judah@mongodb.com>2017-08-07 12:04:10 -0400
commit8fa770baf8fac6e71a45f84b48eeb3bae96a8dab (patch)
tree1aa8c05c67c299e2459153f152c69b17457d62af /src/mongo/db/repl/sync_tail_test_fixture.cpp
parentb519114cb9bc72c17c60761cad369f2d8e18f472 (diff)
downloadmongo-8fa770baf8fac6e71a45f84b48eeb3bae96a8dab.tar.gz
SERVER-29893 Rename recovery code and make it accessible to both startup and rollback
Diffstat (limited to 'src/mongo/db/repl/sync_tail_test_fixture.cpp')
-rw-r--r--src/mongo/db/repl/sync_tail_test_fixture.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/repl/sync_tail_test_fixture.cpp b/src/mongo/db/repl/sync_tail_test_fixture.cpp
index a67817924ba..c9998c89660 100644
--- a/src/mongo/db/repl/sync_tail_test_fixture.cpp
+++ b/src/mongo/db/repl/sync_tail_test_fixture.cpp
@@ -36,6 +36,7 @@
#include "mongo/db/repl/replication_consistency_markers_mock.h"
#include "mongo/db/repl/replication_coordinator_mock.h"
#include "mongo/db/repl/replication_process.h"
+#include "mongo/db/repl/replication_recovery_mock.h"
#include "mongo/db/repl/storage_interface_mock.h"
namespace mongo {
@@ -56,8 +57,10 @@ void SyncTailTest::setUp() {
DropPendingCollectionReaper::set(
service, stdx::make_unique<DropPendingCollectionReaper>(_storageInterface));
- _replicationProcess = new ReplicationProcess(
- _storageInterface, stdx::make_unique<ReplicationConsistencyMarkersMock>());
+ _replicationProcess =
+ new ReplicationProcess(_storageInterface,
+ stdx::make_unique<ReplicationConsistencyMarkersMock>(),
+ stdx::make_unique<ReplicationRecoveryMock>());
ReplicationProcess::set(cc().getServiceContext(),
std::unique_ptr<ReplicationProcess>(_replicationProcess));