summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_limit.cpp
diff options
context:
space:
mode:
authorWill Buerger <will.buerger@mongodb.com>2023-03-14 20:49:09 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-03-16 19:20:45 +0000
commita9a20593fd1c3106548650bfc909d26dab2e38a4 (patch)
tree9121911fdcfc6ebd2fec8d31df02f554d970c3bc /src/mongo/db/pipeline/document_source_limit.cpp
parent9662f3c9edfd52ce4c9b0cad619bed57562a3daa (diff)
downloadmongo-a9a20593fd1c3106548650bfc909d26dab2e38a4.tar.gz
SERVER-74843 Remove overloaded document source serializers and change signature to use SerializationOptions
Diffstat (limited to 'src/mongo/db/pipeline/document_source_limit.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_limit.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_limit.cpp b/src/mongo/db/pipeline/document_source_limit.cpp
index f50e795897d..c83c33f5f8f 100644
--- a/src/mongo/db/pipeline/document_source_limit.cpp
+++ b/src/mongo/db/pipeline/document_source_limit.cpp
@@ -88,7 +88,10 @@ DocumentSource::GetNextResult DocumentSourceLimit::doGetNext() {
return nextInput;
}
-Value DocumentSourceLimit::serialize(boost::optional<ExplainOptions::Verbosity> explain) const {
+Value DocumentSourceLimit::serialize(SerializationOptions opts) const {
+ if (opts.redactFieldNames || opts.replacementForLiteralArgs) {
+ MONGO_UNIMPLEMENTED_TASSERT(7484331);
+ }
return Value(Document{{getSourceName(), _limit}});
}