summaryrefslogtreecommitdiff
path: root/src/mongo/db/vector_clock.h
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2020-09-15 11:44:54 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-17 04:31:08 +0000
commit686ee776666ebcfa15f3744142f74b6f1d59e617 (patch)
tree4b03cae9999243359291acc931eaae8daa2b5869 /src/mongo/db/vector_clock.h
parent8213debcbf8b9495c0e336d98a8bf75df7f088c5 (diff)
downloadmongo-686ee776666ebcfa15f3744142f74b6f1d59e617.tar.gz
SERVER-48433 Remove LogicalClock facade
Diffstat (limited to 'src/mongo/db/vector_clock.h')
-rw-r--r--src/mongo/db/vector_clock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/vector_clock.h b/src/mongo/db/vector_clock.h
index 9cf544a06c0..b33151f3a3e 100644
--- a/src/mongo/db/vector_clock.h
+++ b/src/mongo/db/vector_clock.h
@@ -136,6 +136,13 @@ public:
VectorTime getTime() const;
/**
+ * Returns the current cluster time if this is a replica set node, otherwise returns a null
+ * logical time.
+ */
+ static LogicalTime getClusterTimeForReplicaSet(ServiceContext* svcCtx);
+ static LogicalTime getClusterTimeForReplicaSet(OperationContext* opCtx);
+
+ /**
* Adds the necessary fields to outMessage to gossip the current time to another node, taking
* into account if the gossiping is to an internal or external client (based on the session
* tags). Returns true if the ClusterTime was output into outMessage, or false otherwise.