summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_impl.cpp
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-05-08 14:53:49 -0400
committerJudah Schvimer <judah@mongodb.com>2018-05-15 13:59:11 -0400
commit689d52131f6ac1a446fe1b93647b11d0329c629c (patch)
tree42b715f59ee4b402ac12fad10c2e8ebc59fbe9ee /src/mongo/db/repl/storage_interface_impl.cpp
parent6d2de545a7cfcf4ab23dcf73426a1d50896d6d0c (diff)
downloadmongo-689d52131f6ac1a446fe1b93647b11d0329c629c.tar.gz
SERVER-34895 only set stable timestamp to timestamps in oplog
Diffstat (limited to 'src/mongo/db/repl/storage_interface_impl.cpp')
-rw-r--r--src/mongo/db/repl/storage_interface_impl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_impl.cpp b/src/mongo/db/repl/storage_interface_impl.cpp
index 70e44dd80b5..fad6858f2e3 100644
--- a/src/mongo/db/repl/storage_interface_impl.cpp
+++ b/src/mongo/db/repl/storage_interface_impl.cpp
@@ -1149,5 +1149,13 @@ boost::optional<Timestamp> StorageInterfaceImpl::getLastStableCheckpointTimestam
return ret;
}
+bool StorageInterfaceImpl::supportsDocLocking(ServiceContext* serviceCtx) const {
+ return serviceCtx->getStorageEngine()->supportsDocLocking();
+}
+
+Timestamp StorageInterfaceImpl::getAllCommittedTimestamp(ServiceContext* serviceCtx) const {
+ return serviceCtx->getStorageEngine()->getAllCommittedTimestamp();
+}
+
} // namespace repl
} // namespace mongo