diff options
| author | David Storch <david.storch@mongodb.com> | 2022-02-09 17:49:14 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-09 19:06:01 +0000 |
| commit | a94caa502cf94fa6c8fcfea7283d7eaf3bd55ad5 (patch) | |
| tree | b9190c0408050244ab5a31e792ac5bb5422a63ff /src/mongo/db/exec/multi_plan.cpp | |
| parent | 32b042a2ed38d8a3f056b862cf6b13b36fb7ee4c (diff) | |
SERVER-63102 Introduce internalQueryPlanEvaluationWorksSber5.3.0-alpha3
The 'internalQueryPlanEvaluationWorks' parameter now only
affects the classic engine. The newly added parameter has
similar behavior, but applies only to queries using SBE.
Diffstat (limited to 'src/mongo/db/exec/multi_plan.cpp')
| -rw-r--r-- | src/mongo/db/exec/multi_plan.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/exec/multi_plan.cpp b/src/mongo/db/exec/multi_plan.cpp index 892d05cb5ca..96aaf4ca52d 100644 --- a/src/mongo/db/exec/multi_plan.cpp +++ b/src/mongo/db/exec/multi_plan.cpp @@ -163,8 +163,11 @@ Status MultiPlanStage::pickBestPlan(PlanYieldPolicy* yieldPolicy) { // make sense. auto optTimer = getOptTimer(); - size_t numWorks = trial_period::getTrialPeriodMaxWorks( - opCtx(), collection(), internalQueryPlanEvaluationCollFraction.load()); + const size_t numWorks = + trial_period::getTrialPeriodMaxWorks(opCtx(), + collection(), + internalQueryPlanEvaluationWorks.load(), + internalQueryPlanEvaluationCollFraction.load()); size_t numResults = trial_period::getTrialPeriodNumToReturn(*_query); try { |
