diff options
Diffstat (limited to 'src/mongo/db/commands/dbcommands.cpp')
-rw-r--r-- | src/mongo/db/commands/dbcommands.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/commands/dbcommands.cpp b/src/mongo/db/commands/dbcommands.cpp index d18fa21101f..eb3c3567077 100644 --- a/src/mongo/db/commands/dbcommands.cpp +++ b/src/mongo/db/commands/dbcommands.cpp @@ -533,15 +533,6 @@ public: "collMod on a time-series collection's underlying buckets collection is not supported.", !cmd->getNamespace().isTimeseriesBucketsCollection()); - const auto isChangeStreamPreAndPostImagesEnabled = - (cmd->getChangeStreamPreAndPostImages() && - cmd->getChangeStreamPreAndPostImages()->getEnabled()); - const auto isRecordPreImagesEnabled = cmd->getRecordPreImages().get_value_or(false); - uassert(ErrorCodes::InvalidOptions, - "'recordPreImages' and 'changeStreamPreAndPostImages.enabled' can not be set " - "to true simultaneously", - !(isChangeStreamPreAndPostImagesEnabled && isRecordPreImagesEnabled)); - // Updating granularity on sharded time-series collections is not allowed. if (Grid::get(opCtx)->catalogClient() && cmd->getTimeseries() && cmd->getTimeseries()->getGranularity()) { |