summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_cursor.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_cursor.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp
index 520c32f74cc..55bacba9d7f 100644
--- a/src/mongo/db/pipeline/document_source_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_cursor.cpp
@@ -206,12 +206,9 @@ void DocumentSourceCursor::recordPlanSummaryStats() {
_exec->getPlanExplainer().getSummaryStats(&_stats.planSummaryStats);
}
-Value DocumentSourceCursor::serialize(const SerializationOptions& opts) const {
- auto verbosity = opts.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.transformIdentifiers ||
- opts.literalPolicy != LiteralSerializationPolicy::kUnchanged)
+Value DocumentSourceCursor::serialize(boost::optional<ExplainOptions::Verbosity> verbosity) const {
+ // We never parse a DocumentSourceCursor, so we only serialize for explain.
+ if (!verbosity)
return Value();
invariant(_exec);