summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_test_fixture.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-07-25 17:14:56 -0400
committerJudah Schvimer <judah@mongodb.com>2017-07-25 17:14:56 -0400
commitba178d6455bd8490bfb90c434c9b1ef66b37c643 (patch)
treed5659eb926fbc711955fb8342cf558400f62009a /src/mongo/db/repl/replication_coordinator_test_fixture.h
parent79d20fad099532ffb48b688c41acf73dbca91a57 (diff)
downloadmongo-ba178d6455bd8490bfb90c434c9b1ef66b37c643.tar.gz
SERVER-30184 Call setInitialDataTimestamp at the end of processing replSetInitiate
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_test_fixture.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_test_fixture.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.h b/src/mongo/db/repl/replication_coordinator_test_fixture.h
index 9f1b27aabea..e1aaa9ca6d1 100644
--- a/src/mongo/db/repl/replication_coordinator_test_fixture.h
+++ b/src/mongo/db/repl/replication_coordinator_test_fixture.h
@@ -112,6 +112,13 @@ protected:
}
/**
+ * Gets the storage interface.
+ */
+ StorageInterfaceMock* getStorageInterface() {
+ return _storageInterface;
+ }
+
+ /**
* Gets the topology coordinator used by the replication coordinator under test.
*/
TopologyCoordinatorImpl& getTopoCoord() {
@@ -267,6 +274,8 @@ private:
ReplicationCoordinatorExternalStateMock* _externalState = nullptr;
// Owned by ReplicationCoordinatorImpl
executor::TaskExecutor* _replExec = nullptr;
+ // Owned by the ServiceContext
+ StorageInterfaceMock* _storageInterface = nullptr;
ReplSettings _settings;
bool _callShutdown = false;