diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_single_document_transformation.cpp')
| -rw-r--r-- | src/mongo/db/pipeline/document_source_single_document_transformation.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/pipeline/document_source_single_document_transformation.cpp b/src/mongo/db/pipeline/document_source_single_document_transformation.cpp index 33820b0ceaf..c72c338ab91 100644 --- a/src/mongo/db/pipeline/document_source_single_document_transformation.cpp +++ b/src/mongo/db/pipeline/document_source_single_document_transformation.cpp @@ -64,7 +64,6 @@ DocumentSource::GetNextResult DocumentSourceSingleDocumentTransformation::doGetN // Get the next input document. auto input = pSource->getNext(); - if (!input.isAdvanced()) { return input; } @@ -89,11 +88,10 @@ void DocumentSourceSingleDocumentTransformation::doDispose() { } Value DocumentSourceSingleDocumentTransformation::serialize( - const SerializationOptions& opts) const { - return Value( - Document{{getSourceName(), - _parsedTransform ? _parsedTransform->serializeTransformation(opts.verbosity, opts) - : _cachedStageOptions}}); + boost::optional<ExplainOptions::Verbosity> explain) const { + return Value(Document{{getSourceName(), + _parsedTransform ? _parsedTransform->serializeTransformation(explain) + : _cachedStageOptions}}); } Pipeline::SourceContainer::iterator DocumentSourceSingleDocumentTransformation::doOptimizeAt( |
