summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_clock.h
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2017-02-14 17:39:46 -0500
committerMisha Tyulenev <misha@mongodb.com>2017-02-15 14:47:55 -0500
commit7d36244539cff23adb813f9cc006b1e9fe4305e0 (patch)
treefe139db2fd9807151435c296dc77697a69523fab /src/mongo/db/logical_clock.h
parent7284884f3d8f3cf1d1489579180c2637efcc42b2 (diff)
downloadmongo-7d36244539cff23adb813f9cc006b1e9fe4305e0.tar.gz
SERVER-27746: Integrate LogicalClock with oplog
Diffstat (limited to 'src/mongo/db/logical_clock.h')
-rw-r--r--src/mongo/db/logical_clock.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/logical_clock.h b/src/mongo/db/logical_clock.h
index 57d8dc4b80b..ffb78848986 100644
--- a/src/mongo/db/logical_clock.h
+++ b/src/mongo/db/logical_clock.h
@@ -63,7 +63,12 @@ public:
* Returns an error if the newTime does not pass the rate check or proof validation,
* OK otherwise.
*/
- Status advanceClusterTime(const SignedLogicalTime& newTime);
+ Status advanceClusterTime(const SignedLogicalTime&);
+
+ /**
+ * Simliar to advaneClusterTime, but only does rate checking and not proof validation.
+ */
+ Status advanceClusterTimeFromTrustedSource(LogicalTime);
/**
* Returns the current clusterTime.
@@ -74,7 +79,7 @@ public:
* Returns the next clusterTime value and provides the guarantee that the next reserveTicks
* call will return the value at least nTicks ticks in the future from the current clusterTime.
*/
- LogicalTime reserveTicks(uint64_t nTicks = 1);
+ LogicalTime reserveTicks(uint64_t nTicks);
/**
* Resets _clusterTime to the signed time created from newTime. Should be used at the