summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/explain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/explain.cpp')
-rw-r--r--src/mongo/db/query/explain.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp
index acff30e9a64..ad299239b82 100644
--- a/src/mongo/db/query/explain.cpp
+++ b/src/mongo/db/query/explain.cpp
@@ -129,7 +129,8 @@ MultiPlanStage* getMultiPlanStage(PlanStage* root) {
* there is no PPS that is root.
*/
PipelineProxyStage* getPipelineProxyStage(PlanStage* root) {
- if (root->stageType() == STAGE_PIPELINE_PROXY) {
+ if (root->stageType() == STAGE_PIPELINE_PROXY ||
+ root->stageType() == STAGE_CHANGE_STREAM_PROXY) {
return static_cast<PipelineProxyStage*>(root);
}
@@ -894,7 +895,8 @@ std::string Explain::getPlanSummary(const PlanExecutor* exec) {
// static
std::string Explain::getPlanSummary(const PlanStage* root) {
- if (root->stageType() == STAGE_PIPELINE_PROXY) {
+ if (root->stageType() == STAGE_PIPELINE_PROXY ||
+ root->stageType() == STAGE_CHANGE_STREAM_PROXY) {
auto pipelineProxy = static_cast<const PipelineProxyStage*>(root);
return pipelineProxy->getPlanSummaryStr();
}
@@ -928,7 +930,8 @@ void Explain::getSummaryStats(const PlanExecutor& exec, PlanSummaryStats* statsO
PlanStage* root = exec.getRootStage();
- if (root->stageType() == STAGE_PIPELINE_PROXY) {
+ if (root->stageType() == STAGE_PIPELINE_PROXY ||
+ root->stageType() == STAGE_CHANGE_STREAM_PROXY) {
auto pipelineProxy = static_cast<PipelineProxyStage*>(root);
pipelineProxy->getPlanSummaryStats(statsOut);
return;