diff options
author | Scott Hernandez <scotthernandez@tart.local> | 2016-03-01 16:15:53 -0500 |
---|---|---|
committer | Scott Hernandez <scotthernandez@tart.local> | 2016-03-27 11:45:02 -0400 |
commit | 664295c8ca3152c48da572c770aa08c39e517bf4 (patch) | |
tree | 6f3db3803970f5ddf55eb20ce3ee0eb28076164b /src/mongo/db/repl/replication_coordinator_external_state_mock.h | |
parent | 9be485ea5e262d7d69a5486cc60fce247b5ae57f (diff) | |
download | mongo-664295c8ca3152c48da572c770aa08c39e517bf4.tar.gz |
SERVER-23010: general cleanup and test fixture changes
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state_mock.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_external_state_mock.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_mock.h b/src/mongo/db/repl/replication_coordinator_external_state_mock.h index 643988047de..89fa3399206 100644 --- a/src/mongo/db/repl/replication_coordinator_external_state_mock.h +++ b/src/mongo/db/repl/replication_coordinator_external_state_mock.h @@ -145,6 +145,16 @@ public: */ bool threadsStarted() const; + /** + * Sets if the storage engine is configured to support ReadConcern::Majority (committed point). + */ + void setIsReadCommittedEnabled(bool val); + + /** + * Sets if we are taking snapshots for read concern majority use. + */ + void setAreSnapshotsEnabled(bool val); + private: StatusWith<BSONObj> _localRsConfigDocument; StatusWith<LastVote> _localRsLastVoteDocument; @@ -165,6 +175,8 @@ private: bool _connectionsClosed; HostAndPort _clientHostAndPort; bool _threadsStarted; + bool _isReadCommittedSupported = true; + bool _areSnapshotsEnabled = true; }; } // namespace repl |