summaryrefslogtreecommitdiff
path: root/src/mongo/db/global_timestamp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/global_timestamp.h')
-rw-r--r--src/mongo/db/global_timestamp.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/global_timestamp.h b/src/mongo/db/global_timestamp.h
index 9c106147b6a..408d38a6aae 100644
--- a/src/mongo/db/global_timestamp.h
+++ b/src/mongo/db/global_timestamp.h
@@ -31,7 +31,9 @@
#include "mongo/bson/timestamp.h"
namespace mongo {
-void setGlobalTimestamp(const Timestamp& newTime);
+class ServiceContext;
+
+void setGlobalTimestamp(ServiceContext* service, const Timestamp& newTime);
/**
* Returns the value of the global Timestamp generated last time or set.
@@ -42,5 +44,5 @@ Timestamp getLastSetTimestamp();
* Generates a new and unique Timestamp.
* If count > 1 that many unique Timestamps are reserved starting with the returned value.
*/
-Timestamp getNextGlobalTimestamp(unsigned count = 1);
+Timestamp getNextGlobalTimestamp(ServiceContext* service, unsigned count = 1);
}