summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbcommands.cpp
diff options
context:
space:
mode:
authorMindaugas Malinauskas <mindaugas.malinauskas@mongodb.com>2022-08-29 16:11:33 +0100
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-14 15:06:34 +0000
commitaa15763f05f85402aebd6c1b5ed30ec3184cbb86 (patch)
tree78cb0242fd97047b04de62d1854b251ffaed3edb /src/mongo/db/commands/dbcommands.cpp
parent095cfdb2bd20b10d0a20ef876029120b69971368 (diff)
downloadmongo-aa15763f05f85402aebd6c1b5ed30ec3184cbb86.tar.gz
SERVER-60919 Remove oplog based change stream pre-image storage
Diffstat (limited to 'src/mongo/db/commands/dbcommands.cpp')
-rw-r--r--src/mongo/db/commands/dbcommands.cpp9
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()) {