diff options
Diffstat (limited to 'src/mongo/db/catalog/create_collection.cpp')
-rw-r--r-- | src/mongo/db/catalog/create_collection.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/catalog/create_collection.cpp b/src/mongo/db/catalog/create_collection.cpp index 5a6c1f4856d..90323d8dc82 100644 --- a/src/mongo/db/catalog/create_collection.cpp +++ b/src/mongo/db/catalog/create_collection.cpp @@ -480,16 +480,6 @@ Status _createCollection(OperationContext* opCtx, return status; } - // If the FCV has changed while executing the command to the version, where the feature flag - // is disabled, enabling changeStreamPreAndPostImagesOptions is not allowed. - // TODO SERVER-58584: remove the feature flag. - if (!feature_flags::gFeatureFlagChangeStreamPreAndPostImages.isEnabled( - serverGlobalParams.featureCompatibility) && - collectionOptions.changeStreamPreAndPostImagesOptions.getEnabled()) { - return Status(ErrorCodes::InvalidOptions, - "The 'changeStreamPreAndPostImages' is an unknown field."); - } - if (!collectionOptions.clusteredIndex && collectionOptions.expireAfterSeconds) { return Status(ErrorCodes::InvalidOptions, "'expireAfterSeconds' requires clustering to be enabled"); |