diff options
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/catalog/type_collection.h | 2 | ||||
-rw-r--r-- | src/mongo/s/catalog/type_collection.idl | 2 | ||||
-rw-r--r-- | src/mongo/s/request_types/configure_collection_auto_split.idl | 6 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/s/catalog/type_collection.h b/src/mongo/s/catalog/type_collection.h index a903da4d224..fb032a94f72 100644 --- a/src/mongo/s/catalog/type_collection.h +++ b/src/mongo/s/catalog/type_collection.h @@ -145,7 +145,7 @@ public: void setMaxChunkSizeBytes(int64_t value); bool getAllowAutoSplit() const { - return !getNoAutoSplit(); + return !getNoAutoSplit().get_value_or(false); } bool getAllowBalance() const { diff --git a/src/mongo/s/catalog/type_collection.idl b/src/mongo/s/catalog/type_collection.idl index 10612997ec8..acff4f93d88 100644 --- a/src/mongo/s/catalog/type_collection.idl +++ b/src/mongo/s/catalog/type_collection.idl @@ -113,7 +113,7 @@ structs: noAutoSplit: type: bool description: "Specifies whether the auto-splitter should be running or not for this collection." - default: false + optional: true noBalance: type: bool description: "Consulted by the Balancer only and indicates whether this collection diff --git a/src/mongo/s/request_types/configure_collection_auto_split.idl b/src/mongo/s/request_types/configure_collection_auto_split.idl index 0a3121d8256..f4ccc578ff0 100644 --- a/src/mongo/s/request_types/configure_collection_auto_split.idl +++ b/src/mongo/s/request_types/configure_collection_auto_split.idl @@ -34,6 +34,12 @@ global: imports: - "mongo/idl/basic_types.idl" +feature_flags: + featureFlagPerCollectionAutoSplitter: + description: "Add capability to configure per collection auto-splitter settings." + cpp_varname: feature_flags::gShardingPerCollectionAutoSplitter + default: false + structs: configure_auto_split_params: description: "Parameters for configureCollectionAutoSplitter command" |