summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/storage_interface_mock.h
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_mock.h
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_mock.h')
-rw-r--r--src/mongo/db/repl/storage_interface_mock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/repl/storage_interface_mock.h b/src/mongo/db/repl/storage_interface_mock.h
index 3bb46b2fe0b..f242c0b6a93 100644
--- a/src/mongo/db/repl/storage_interface_mock.h
+++ b/src/mongo/db/repl/storage_interface_mock.h
@@ -303,6 +303,10 @@ public:
return boost::none;
}
+ Timestamp getAllCommittedTimestamp(ServiceContext* serviceCtx) const override;
+
+ bool supportsDocLocking(ServiceContext* serviceCtx) const override;
+
Status isAdminDbValid(OperationContext* opCtx) override {
return isAdminDbValidFn(opCtx);
};
@@ -384,6 +388,9 @@ public:
return Status{ErrorCodes::IllegalOperation, "GetCollectionUUIDFn not implemented."};
};
+ bool supportsDocLockingBool = false;
+ Timestamp allCommittedTimestamp = Timestamp::min();
+
private:
mutable stdx::mutex _mutex;
int _rbid;