diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp')
| -rw-r--r-- | src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp b/src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp index 3d8b330cec3..d9c5455f271 100644 --- a/src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp +++ b/src/mongo/db/pipeline/document_source_set_variable_from_subpipeline.cpp @@ -54,13 +54,12 @@ REGISTER_INTERNAL_DOCUMENT_SOURCE( // to check the FCV. feature_flags::gFeatureFlagSearchShardedFacets.isEnabledAndIgnoreFCV()); -Value DocumentSourceSetVariableFromSubPipeline::serialize( - boost::optional<ExplainOptions::Verbosity> explain) const { +Value DocumentSourceSetVariableFromSubPipeline::serialize(const SerializationOptions& opts) const { const auto var = "$$" + Variables::getBuiltinVariableName(_variableID); SetVariableFromSubPipelineSpec spec; tassert(625298, "SubPipeline cannot be null during serialization", _subPipeline); - spec.setSetVariable(var); - spec.setPipeline(_subPipeline->serializeToBson(explain)); + spec.setSetVariable(opts.serializeIdentifier(var)); + spec.setPipeline(_subPipeline->serializeToBson(opts)); return Value(DOC(getSourceName() << spec.toBSON())); } |
