summaryrefslogtreecommitdiff
path: root/src/mongo/db/vector_clock.h
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2020-06-10 13:49:38 +1000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-01 09:03:46 +0000
commit14b028bc09c566b6f2c3dc48304755efec51326f (patch)
tree0156716f1cd57eb951e15b7f41793237b78592c1 /src/mongo/db/vector_clock.h
parent3a2d6f3cfdaa7ff6ad34f2642cd598f0eb97e761 (diff)
downloadmongo-14b028bc09c566b6f2c3dc48304755efec51326f.tar.gz
SERVER-47406 Implement the persistence and tracking of topologyTime
Diffstat (limited to 'src/mongo/db/vector_clock.h')
-rw-r--r--src/mongo/db/vector_clock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/vector_clock.h b/src/mongo/db/vector_clock.h
index db2a74e6140..98548dde61c 100644
--- a/src/mongo/db/vector_clock.h
+++ b/src/mongo/db/vector_clock.h
@@ -50,7 +50,8 @@ public:
enum class Component : uint8_t {
ClusterTime = 0,
ConfigTime = 1,
- _kNumComponents = 2,
+ TopologyTime = 2,
+ _kNumComponents = 3,
};
private:
@@ -95,6 +96,7 @@ public:
static constexpr char kClusterTimeFieldName[] = "$clusterTime";
static constexpr char kConfigTimeFieldName[] = "$configTime";
+ static constexpr char kTopologyTimeFieldName[] = "$topologyTime";
// Decorate ServiceContext with VectorClock* which points to the actual vector clock
// implementation.