diff options
Diffstat (limited to 'src/mongo/s/catalog/type_collection.h')
-rw-r--r-- | src/mongo/s/catalog/type_collection.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/s/catalog/type_collection.h b/src/mongo/s/catalog/type_collection.h index a5710d08f76..ffdc31a4a64 100644 --- a/src/mongo/s/catalog/type_collection.h +++ b/src/mongo/s/catalog/type_collection.h @@ -84,6 +84,9 @@ public: static constexpr auto kKeyPatternFieldName = kPre50CompatibleKeyPatternFieldName; static constexpr auto kUuidFieldName = kPre50CompatibleUuidFieldName; static constexpr auto kAllowMigrationsFieldName = kPre50CompatibleAllowMigrationsFieldName; + + using CollectionTypeBase::kMaxChunkSizeBytesFieldName; + using CollectionTypeBase::kNoAutoSplitFieldName; using CollectionTypeBase::kNssFieldName; using CollectionTypeBase::kReshardingFieldsFieldName; using CollectionTypeBase::kTimeseriesFieldsFieldName; @@ -92,6 +95,7 @@ public: using CollectionTypeBase::kUpdatedAtFieldName; // Make getters and setters accessible. + using CollectionTypeBase::getMaxChunkSizeBytes; using CollectionTypeBase::getNss; using CollectionTypeBase::getReshardingFields; using CollectionTypeBase::getTimeseriesFields; @@ -147,6 +151,12 @@ public: } void setDefaultCollation(const BSONObj& defaultCollation); + void setMaxChunkSizeBytes(int64_t value); + + bool getAllowAutoSplit() const { + return !getNoAutoSplit(); + } + bool getAllowBalance() const { return !getNoBalance(); } |