-
Type:
Bug
-
Resolution: Done
-
Priority:
Critical - P2
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
None
-
Fully Compatible
-
ALL
-
Query 2016-08-29
-
0
-
None
-
None
-
None
-
None
-
None
-
None
-
None
PipelineCommand::run() in cluster_pipeline_cmd.cpp calls Pipeline::parse() and then Pipeline::optimizePipeline() without resolving the collator and calling Pipeline::injectExpressionContext() in between.
// Parse and optimize the pipeline specification. auto pipeline = Pipeline::parse(request.getValue().getPipeline(), mergeCtx); if (!pipeline.isOK()) { return appendCommandStatus(result, pipeline.getStatus()); } pipeline.getValue()->optimizePipeline();