summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_tee_consumer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_tee_consumer.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_tee_consumer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_tee_consumer.cpp b/src/mongo/db/pipeline/document_source_tee_consumer.cpp
index 47539fb491c..739cec3498c 100644
--- a/src/mongo/db/pipeline/document_source_tee_consumer.cpp
+++ b/src/mongo/db/pipeline/document_source_tee_consumer.cpp
@@ -71,8 +71,9 @@ void DocumentSourceTeeConsumer::doDispose() {
_bufferSource->dispose(_facetId);
}
-Value DocumentSourceTeeConsumer::serialize(const SerializationOptions& opts) const {
+Value DocumentSourceTeeConsumer::serialize(
+ boost::optional<ExplainOptions::Verbosity> explain) const {
// We only serialize this stage in the context of explain.
- return opts.verbosity ? Value(DOC(_stageName << Document())) : Value();
+ return explain ? Value(DOC(_stageName << Document())) : Value();
}
} // namespace mongo