summaryrefslogtreecommitdiff
path: root/src/mongo/s/database_version.idl
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2020-11-23 08:57:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-24 16:34:15 +0000
commitbb840568d976f687fb8e0baa24e37a7827b06de4 (patch)
tree9f67072809d015dd8d84d58cd0290c5f3f7c5278 /src/mongo/s/database_version.idl
parentd291ec46eebdb789a700053f949fb0f3f92cc7d0 (diff)
downloadmongo-bb840568d976f687fb8e0baa24e37a7827b06de4.tar.gz
SERVER-52933 Add timestamp to the DatabaseVersion IDL
PART 1 - Adding a new DatabaseVersion class that handles the underlying IDL implementation of a DatabaseVersion
Diffstat (limited to 'src/mongo/s/database_version.idl')
-rw-r--r--src/mongo/s/database_version.idl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/s/database_version.idl b/src/mongo/s/database_version.idl
index 8c5776f1ffe..f2401e77639 100644
--- a/src/mongo/s/database_version.idl
+++ b/src/mongo/s/database_version.idl
@@ -26,8 +26,6 @@
# it in the license file.
#
-# DatabaseVersion type
-
global:
cpp_namespace: "mongo"
@@ -35,7 +33,7 @@ imports:
- "mongo/idl/basic_types.idl"
structs:
- DatabaseVersion:
+ DatabaseVersionBase:
description: "A (UUID, int) pair that uniquely identifies an incarnation of a database in a cluster and reflects changes to the database's primary shard"
# The generated comparison operators will do a field-wise lexicographic comparison, which
# doesn't work because it's nonsensical to lexicographically compare UUIDs.
@@ -45,6 +43,7 @@ structs:
uuid:
type: uuid
description: "a unique identifier to distinguish different incarnations of this database"
+ optional: true
lastMod:
type: int
description: "an integer which is bumped whenever the database's primary shard changes"