summaryrefslogtreecommitdiff
path: root/src/mongo/db/logical_clock.h
diff options
context:
space:
mode:
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