diff options
author | Maria van Keulen <maria@mongodb.com> | 2017-05-30 13:43:26 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2017-07-25 17:29:17 -0400 |
commit | b2ef59c4fa30c2e242840cc1aa55de3c8cdfa887 (patch) | |
tree | 8d8c2b64322b823e856b86f023fa4b83ea0ebf39 /src/mongo/db/server_options.h | |
parent | ba178d6455bd8490bfb90c434c9b1ef66b37c643 (diff) | |
download | mongo-b2ef59c4fa30c2e242840cc1aa55de3c8cdfa887.tar.gz |
SERVER-29370 Update UUIDs when featureCompatibilityVersion is changed
This patch ensures collections have UUIDs when
featureCompatibilityVersion is 3.6 and collections do not have UUIDs
when featureCompatibilityVersion is 3.4 (or below).
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r-- | src/mongo/db/server_options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h index c8775b6a56e..b24fb513c7e 100644 --- a/src/mongo/db/server_options.h +++ b/src/mongo/db/server_options.h @@ -165,6 +165,10 @@ struct ServerGlobalParams { // Read-only parameter featureCompatibilityVersion. AtomicWord<Version> version{Version::k34}; + // Read-only global isSchemaVersion36. This determines whether to give Collections UUIDs + // upon creation. + AtomicWord<bool> isSchemaVersion36{false}; + // Feature validation differs depending on the role of a mongod in a replica set or // master/slave configuration. Masters/primaries can accept user-initiated writes and // validate based on the feature compatibility version. A secondary/slave (which is not also |