diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-11-21 12:25:54 -0500 |
---|---|---|
committer | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-11-21 12:25:54 -0500 |
commit | 470c30273c479c5ab139de0d38e016f95c589c49 (patch) | |
tree | 1b8fa734567a6976c4980bb6ca4885b13af6ed8a /src/mongo/db/repl/storage_interface_mock.h | |
parent | a094c5b4b4783895d5fe168541bd97103a0d05f5 (diff) | |
download | mongo-470c30273c479c5ab139de0d38e016f95c589c49.tar.gz |
SERVER-31304: Refactor away SnapshotName.
Diffstat (limited to 'src/mongo/db/repl/storage_interface_mock.h')
-rw-r--r-- | src/mongo/db/repl/storage_interface_mock.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/repl/storage_interface_mock.h b/src/mongo/db/repl/storage_interface_mock.h index bc16ff01bbc..c67f339a691 100644 --- a/src/mongo/db/repl/storage_interface_mock.h +++ b/src/mongo/db/repl/storage_interface_mock.h @@ -34,6 +34,7 @@ #include "mongo/base/status_with.h" #include "mongo/base/string_data.h" #include "mongo/bson/bsonobj.h" +#include "mongo/bson/timestamp.h" #include "mongo/db/namespace_string.h" #include "mongo/db/repl/storage_interface.h" #include "mongo/stdx/mutex.h" @@ -272,13 +273,13 @@ public: return upgradeUUIDSchemaVersionNonReplicatedFn(opCtx); } - void setStableTimestamp(ServiceContext* serviceCtx, SnapshotName snapshotName) override; + void setStableTimestamp(ServiceContext* serviceCtx, Timestamp snapshotName) override; - void setInitialDataTimestamp(ServiceContext* serviceCtx, SnapshotName snapshotName) override; + void setInitialDataTimestamp(ServiceContext* serviceCtx, Timestamp snapshotName) override; - SnapshotName getStableTimestamp() const; + Timestamp getStableTimestamp() const; - SnapshotName getInitialDataTimestamp() const; + Timestamp getInitialDataTimestamp() const; Status recoverToStableTimestamp(ServiceContext* serviceCtx) override { return Status{ErrorCodes::IllegalOperation, "recoverToStableTimestamp not implemented."}; @@ -363,8 +364,8 @@ private: mutable stdx::mutex _mutex; int _rbid; bool _rbidInitialized = false; - SnapshotName _stableTimestamp = SnapshotName::min(); - SnapshotName _initialDataTimestamp = SnapshotName::min(); + Timestamp _stableTimestamp = Timestamp::min(); + Timestamp _initialDataTimestamp = Timestamp::min(); OptionalCollectionUUID _uuid; bool _schemaUpgraded; }; |