summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2020-11-12 10:00:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-13 11:31:33 +0000
commitd695d6c46948124242b434f7e572d3e7bfca9823 (patch)
treee153792ebcac097789f4b12818cc8e21fa15f1dd /src/mongo/s/catalog
parent796ee2ee8b8a7bb146bfa7a45eafb4b075a55372 (diff)
downloadmongo-d695d6c46948124242b434f7e572d3e7bfca9823.tar.gz
SERVER-52768: Add timestamp field to CollectionType and ShardServerCollectionType IDL
Diffstat (limited to 'src/mongo/s/catalog')
-rw-r--r--src/mongo/s/catalog/type_collection.idl13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mongo/s/catalog/type_collection.idl b/src/mongo/s/catalog/type_collection.idl
index 59e64243b00..0dd1662de3b 100644
--- a/src/mongo/s/catalog/type_collection.idl
+++ b/src/mongo/s/catalog/type_collection.idl
@@ -62,6 +62,19 @@ structs:
description: "Contains the time of when the collection was either created, or if
dropped = true, when it was dropped."
optional: false
+ timestamp:
+ type: timestamp
+ description: "Uniquely identifies this incarnation of the collection. Only changes
+ in case of drop and create, or shard key refine.
+ This field will store the ClusterTime of the Config Server when the
+ collection was created or it's shard key last refined. Because
+ timestamps are comparable, we are able to define a total order in time
+ in the collection. This field will replace Epoch, which are not
+ comparable.
+
+ It is optional for parsing purposes, because in versions of MongoDB
+ prior to 5.0, this value wasn't being written."
+ optional: true
uuid:
cpp_name: pre50CompatibleUuid
type: uuid