summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_merge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_merge.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_merge.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/document_source_merge.cpp b/src/mongo/db/pipeline/document_source_merge.cpp
index 9669fc49f22..51d0a1adf2f 100644
--- a/src/mongo/db/pipeline/document_source_merge.cpp
+++ b/src/mongo/db/pipeline/document_source_merge.cpp
@@ -365,11 +365,6 @@ boost::intrusive_ptr<DocumentSource> DocumentSourceMerge::create(
MergeWhenNotMatchedMode_serializer(whenNotMatched)),
isSupportedMergeMode(whenMatched, whenNotMatched));
- uassert(51188,
- "{} is not supported when the output collection is the same as "
- "the aggregation collection"_format(kStageName),
- expCtx->ns != outputNs);
-
uassert(ErrorCodes::InvalidNamespace,
"Invalid {} target namespace: '{}'"_format(kStageName, outputNs.ns()),
outputNs.isValid());