diff --git a/src/mongo/db/query/plan_ranker.cpp b/src/mongo/db/query/plan_ranker.cpp index 84af0fb6f39..57717d2427b 100644 --- a/src/mongo/db/query/plan_ranker.cpp +++ b/src/mongo/db/query/plan_ranker.cpp @@ -196,7 +196,7 @@ double PlanRanker::scoreTree(const PlanStageStats* stats) { // Just enough to break a tie. Must be small enough to ensure that a more productive // plan doesn't lose to a less productive plan due to tie breaking. - static const double epsilon = std::min(1.0 / static_cast(10 * workUnits), 1e-4); + const double epsilon = std::min(1.0 / static_cast(10 * workUnits), 1e-4); // We prefer covered projections. //