diff options
-rw-r--r-- | src/mongo/db/exec/multi_plan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/multi_plan.cpp b/src/mongo/db/exec/multi_plan.cpp index 8c816ebdcbd..00254cef133 100644 --- a/src/mongo/db/exec/multi_plan.cpp +++ b/src/mongo/db/exec/multi_plan.cpp @@ -376,7 +376,7 @@ void MultiPlanStage::removeRejectedPlans() { } size_t startIndex = 1; if (_backupPlanIdx != kNoSuchPlan) { - if (_bestPlanIdx != 1) { + if (_backupPlanIdx != 1) { std::swap(_children[_backupPlanIdx], _children[1]); std::swap(_candidates[_backupPlanIdx], _candidates[1]); _backupPlanIdx = 1; |