diff options
author | Max Hirschhorn <max.hirschhorn@mongodb.com> | 2021-03-11 03:43:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-03-11 04:23:55 +0000 |
commit | 76b775b06f94cebb37931c4aebc1c5fc22e9c487 (patch) | |
tree | c65410a4f6adeac52e1f68f0d649406033656de7 /src/mongo | |
parent | b897dc8ee2ea3cc04ed36e847f2dd92dd449261d (diff) | |
download | mongo-76b775b06f94cebb37931c4aebc1c5fc22e9c487.tar.gz |
SERVER-52158 Create but don't yet use feature flag for resharding.
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/s/SConscript | 1 | ||||
-rw-r--r-- | src/mongo/s/resharding/resharding_feature_flag.idl | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript index f78c1273d24..1c1eb0f4c9e 100644 --- a/src/mongo/s/SConscript +++ b/src/mongo/s/SConscript @@ -177,6 +177,7 @@ env.Library( 'request_types/wait_for_fail_point.idl', 'resharded_chunk.idl', 'resharding/common_types.idl', + 'resharding/resharding_feature_flag.idl', 'resharding/resume_token.idl', 'resharding/type_collection_fields.idl', 'shard_id.cpp', diff --git a/src/mongo/s/resharding/resharding_feature_flag.idl b/src/mongo/s/resharding/resharding_feature_flag.idl new file mode 100644 index 00000000000..53df50502d6 --- /dev/null +++ b/src/mongo/s/resharding/resharding_feature_flag.idl @@ -0,0 +1,41 @@ +# Copyright (C) 2021-present MongoDB, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the Server Side Public License, version 1, +# as published by MongoDB, Inc. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# Server Side Public License for more details. +# +# You should have received a copy of the Server Side Public License +# along with this program. If not, see +# <http://www.mongodb.com/licensing/server-side-public-license>. +# +# As a special exception, the copyright holders give permission to link the +# code of portions of this program with the OpenSSL library under certain +# conditions as described in each individual source file and distribute +# linked combinations including the program with the OpenSSL library. You +# must comply with the Server Side Public License in all respects for +# all of the code used other than as permitted herein. If you modify file(s) +# with this exception, you may extend this exception to your version of the +# file(s), but you are not obligated to do so. If you do not wish to do so, +# delete this exception statement from your version. If you delete this +# exception statement from all source files in the program, then also delete +# it in the license file. +# + +# Feature flag for resharding. + +global: + cpp_namespace: "mongo::resharding" + +imports: + - "mongo/idl/basic_types.idl" + +feature_flags: + featureFlagResharding: + description: When enabled, allows users to reshard their sharded collections. + cpp_varname: gFeatureFlagResharding + default: false |