summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2023-05-09 14:52:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-15 17:28:33 +0000
commit0f7b1599504caea00ca84ddd95911833ea65a79f (patch)
tree36a9c84c1a1d670618426a2fc16edf1141abbdb8
parentd3a01033d72ff2a39cfa5cb579e9a538f9a4da45 (diff)
downloadmongo-0f7b1599504caea00ca84ddd95911833ea65a79f.tar.gz
SERVER-76947 remove unimplemented tassert for $cursor shapification
-rw-r--r--src/mongo/db/pipeline/document_source_cursor.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp
index 7fd92681059..388538ef7fb 100644
--- a/src/mongo/db/pipeline/document_source_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_cursor.cpp
@@ -215,11 +215,9 @@ void DocumentSourceCursor::recordPlanSummaryStats() {
Value DocumentSourceCursor::serialize(SerializationOptions opts) const {
auto verbosity = opts.verbosity;
- if (opts.applyHmacToIdentifiers || opts.replacementForLiteralArgs) {
- MONGO_UNIMPLEMENTED_TASSERT(7484350);
- }
- // We never parse a DocumentSourceCursor, so we only serialize for explain.
- if (!verbosity)
+ // We never parse a DocumentSourceCursor, so we only serialize for explain. Since it's never
+ // part of user input, there's no need to compute its query shape.
+ if (!verbosity || opts.applyHmacToIdentifiers || opts.replacementForLiteralArgs)
return Value();
invariant(_exec);