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, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_tee_consumer.cpp b/src/mongo/db/pipeline/document_source_tee_consumer.cpp
index 739cec3498c..47539fb491c 100644
--- a/src/mongo/db/pipeline/document_source_tee_consumer.cpp
+++ b/src/mongo/db/pipeline/document_source_tee_consumer.cpp
@@ -71,9 +71,8 @@ void DocumentSourceTeeConsumer::doDispose() {
_bufferSource->dispose(_facetId);
}
-Value DocumentSourceTeeConsumer::serialize(
- boost::optional<ExplainOptions::Verbosity> explain) const {
+Value DocumentSourceTeeConsumer::serialize(const SerializationOptions& opts) const {
// We only serialize this stage in the context of explain.
- return explain ? Value(DOC(_stageName << Document())) : Value();
+ return opts.verbosity ? Value(DOC(_stageName << Document())) : Value();
}
} // namespace mongo