summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-11-21 12:25:54 -0500
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-11-21 12:25:54 -0500
commit470c30273c479c5ab139de0d38e016f95c589c49 (patch)
tree1b8fa734567a6976c4980bb6ca4885b13af6ed8a /src/mongo/db/repl/storage_interface_impl.cpp
parenta094c5b4b4783895d5fe168541bd97103a0d05f5 (diff)
downloadmongo-470c30273c479c5ab139de0d38e016f95c589c49.tar.gz
SERVER-31304: Refactor away SnapshotName.
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index 4d3b59455fb..05f542ab3a8 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -127,7 +127,7 @@ Status StorageInterfaceImpl::initializeRollbackID(OperationContext* opCtx) {
BSONObjBuilder bob;
rbid.serialize(&bob);
- SnapshotName noTimestamp; // This write is not replicated.
+ Timestamp noTimestamp; // This write is not replicated.
return insertDocument(opCtx,
_rollbackIdNss,
TimestampedBSONObj{bob.done(), noTimestamp},
@@ -949,13 +949,12 @@ Status StorageInterfaceImpl::upgradeUUIDSchemaVersionNonReplicated(OperationCont
return updateUUIDSchemaVersionNonReplicated(opCtx, true);
}
-void StorageInterfaceImpl::setStableTimestamp(ServiceContext* serviceCtx,
- SnapshotName snapshotName) {
+void StorageInterfaceImpl::setStableTimestamp(ServiceContext* serviceCtx, Timestamp snapshotName) {
serviceCtx->getGlobalStorageEngine()->setStableTimestamp(snapshotName);
}
void StorageInterfaceImpl::setInitialDataTimestamp(ServiceContext* serviceCtx,
- SnapshotName snapshotName) {
+ Timestamp snapshotName) {
serviceCtx->getGlobalStorageEngine()->setInitialDataTimestamp(snapshotName);
}