summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-07-20 13:28:41 -0400
committerJudah Schvimer <judah@mongodb.com>2017-07-20 13:28:41 -0400
commit82e6c00b64707a190c13940adf7d0397b2af9cd5 (patch)
treeac4e267805c06dee7ddf34cc09b392e7a0c7d1ee /src/mongo/db/repl/storage_interface_impl.cpp
parentbfc52fd48fa6fe36761ca2b2bd791ed906b56358 (diff)
downloadmongo-82e6c00b64707a190c13940adf7d0397b2af9cd5.tar.gz
SERVER-30184 Add functions to storage interface for rollback to
checkpoint
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index 672a2eb16ea..832b9707722 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -894,6 +894,15 @@ StatusWith<StorageInterface::CollectionCount> StorageInterfaceImpl::getCollectio
return collection->numRecords(opCtx);
}
+void StorageInterfaceImpl::setStableTimestamp(OperationContext* opCtx, SnapshotName snapshotName) {
+ opCtx->getServiceContext()->getGlobalStorageEngine()->setStableTimestamp(snapshotName);
+}
+
+void StorageInterfaceImpl::setInitialDataTimestamp(OperationContext* opCtx,
+ SnapshotName snapshotName) {
+ opCtx->getServiceContext()->getGlobalStorageEngine()->setInitialDataTimestamp(snapshotName);
+}
+
Status StorageInterfaceImpl::isAdminDbValid(OperationContext* opCtx) {
AutoGetDb autoDB(opCtx, "admin", MODE_X);
auto adminDb = autoDB.getDb();