diff options
author | Jordi Serra Torrens <jordi.serra-torrens@mongodb.com> | 2020-11-12 10:00:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-13 11:31:33 +0000 |
commit | d695d6c46948124242b434f7e572d3e7bfca9823 (patch) | |
tree | e153792ebcac097789f4b12818cc8e21fa15f1dd /src/mongo/s/catalog | |
parent | 796ee2ee8b8a7bb146bfa7a45eafb4b075a55372 (diff) | |
download | mongo-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.idl | 13 |
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 |