summaryrefslogtreecommitdiff
path: root/src/mongo/s/query/document_source_merge_cursors.cpp
diff options
context:
space:
mode:
authorDavis Haupt <davis.haupt@mongodb.com>2023-05-04 12:57:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-04 15:10:40 +0000
commit4dd0a134d5ca678bfa6d1973bd4bf28b0ffc6baa (patch)
tree3cbfda395fcec3f4a192934359c008712ee1acca /src/mongo/s/query/document_source_merge_cursors.cpp
parentb98740e2d27df0fa95632a1ac40adf140512e51c (diff)
downloadmongo-4dd0a134d5ca678bfa6d1973bd4bf28b0ffc6baa.tar.gz
Revert "SERVER-76208 support query shape serialization in IDL for types with custom serializers"
This reverts commit 1470c88daaa805408f083a1c2f7bb22f1632b5d1.
Diffstat (limited to 'src/mongo/s/query/document_source_merge_cursors.cpp')
-rw-r--r--src/mongo/s/query/document_source_merge_cursors.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/s/query/document_source_merge_cursors.cpp b/src/mongo/s/query/document_source_merge_cursors.cpp
index c707596fdc7..1d49bcdf916 100644
--- a/src/mongo/s/query/document_source_merge_cursors.cpp
+++ b/src/mongo/s/query/document_source_merge_cursors.cpp
@@ -117,7 +117,13 @@ DocumentSource::GetNextResult DocumentSourceMergeCursors::doGetNext() {
Value DocumentSourceMergeCursors::serialize(SerializationOptions opts) const {
invariant(!_blockingResultsMerger);
invariant(_armParams);
- return Value(Document{{kStageName, _armParams->toBSON(opts)}});
+ if (opts.applyHmacToIdentifiers || opts.replacementForLiteralArgs) {
+ // TODO: SERVER-76208 support query shapification for IDL types like namespacestring with
+ // custom serializers.
+ MONGO_UNIMPLEMENTED_TASSERT(7484301);
+ }
+
+ return Value(Document{{kStageName, _armParams->toBSON()}});
}
boost::intrusive_ptr<DocumentSource> DocumentSourceMergeCursors::createFromBson(