summaryrefslogtreecommitdiff
path: root/src/mongo/db/server_options.h
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2016-08-10 14:18:33 -0400
committerTess Avitabile <tess.avitabile@mongodb.com>2016-08-19 17:57:33 -0400
commitdc4a0797603401f7560199f15bd9dd29bd17b3a0 (patch)
tree6442bee3f873585b3bc46bbcdeee6806d34ddb7c /src/mongo/db/server_options.h
parent9efbffec2c4be8c597a6d39ba3474f5d4a110454 (diff)
downloadmongo-dc4a0797603401f7560199f15bd9dd29bd17b3a0.tar.gz
SERVER-25155 Create setFeatureCompatibilityVersion command
Diffstat (limited to 'src/mongo/db/server_options.h')
-rw-r--r--src/mongo/db/server_options.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mongo/db/server_options.h b/src/mongo/db/server_options.h
index 886b7bb0dd1..3c1b524f250 100644
--- a/src/mongo/db/server_options.h
+++ b/src/mongo/db/server_options.h
@@ -137,6 +137,22 @@ struct ServerGlobalParams {
// for the YAML config, sharding._overrideShardIdentity. Can only be used when in
// queryableBackupMode.
BSONObj overrideShardIdentity;
+
+ enum FeatureCompatibilityVersions {
+ /**
+ * There may be 3.2 nodes in the cluster, so some 3.4 features are not allowed. Default
+ * value.
+ */
+ FeatureCompatibilityVersion_32,
+
+ /**
+ * All nodes in the cluster should be 3.4, so all 3.4 features are allowed.
+ */
+ FeatureCompatibilityVersion_34
+ };
+
+ // Read-only parameter featureCompatibilityVersion.
+ AtomicWord<FeatureCompatibilityVersions> featureCompatibilityVersion;
};
extern ServerGlobalParams serverGlobalParams;