summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog
diff options
context:
space:
mode:
authorSimon Graetzer <simon.gratzer@mongodb.com>2021-09-22 13:21:39 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-22 13:49:38 +0000
commit9eccc4ff68b55b32d5eb9232b18a5a073effe41c (patch)
tree6823d8bdf14edf26bd51d0c1eee7d047d46dcaa6 /src/mongo/s/catalog
parent28fa5831f7b8e7b6ca1ea84fc7bcc7389b2a0ea4 (diff)
downloadmongo-9eccc4ff68b55b32d5eb9232b18a5a073effe41c.tar.gz
SERVER-60074 Add feature flag for configureCollectionAutoSplitter command
Diffstat (limited to 'src/mongo/s/catalog')
-rw-r--r--src/mongo/s/catalog/type_collection.h2
-rw-r--r--src/mongo/s/catalog/type_collection.idl2
2 files changed, 2 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