diff options
Diffstat (limited to 'src/mongo/dbtests/plan_ranking.cpp')
-rw-r--r-- | src/mongo/dbtests/plan_ranking.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/dbtests/plan_ranking.cpp b/src/mongo/dbtests/plan_ranking.cpp index 0c85cfbdfac..991ffc6d316 100644 --- a/src/mongo/dbtests/plan_ranking.cpp +++ b/src/mongo/dbtests/plan_ranking.cpp @@ -121,6 +121,8 @@ namespace PlanRankingTests { BSONObj unused; ASSERT(_mpr->pickBestPlan(&bestPlan, &unused)); ASSERT_LESS_THAN(bestPlan, solutions.size()); + // This is what sets a backup plan, should we test for it. + _mpr->cacheBestPlan(); return solutions[bestPlan]; } |