diff options
author | David Storch <david.storch@10gen.com> | 2015-06-29 17:53:26 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-06-29 17:53:26 -0400 |
commit | dcc38a627d3e4f92d9df0eaeb97739dfa0280907 (patch) | |
tree | 246f2a49e758203dbeff7745d2fd70558908a7cd /src/mongo/db/query/plan_ranker.cpp | |
parent | 80899bf1c22555ebadd1ac0f2f1553174a86bacf (diff) | |
download | mongo-dcc38a627d3e4f92d9df0eaeb97739dfa0280907.tar.gz |
SERVER-17815 tie breaker value should not be static in PlanRanker::scoreTree
Diffstat (limited to 'src/mongo/db/query/plan_ranker.cpp')
-rw-r--r-- | src/mongo/db/query/plan_ranker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<double>(10 * workUnits), 1e-4); + const double epsilon = std::min(1.0 / static_cast<double>(10 * workUnits), 1e-4); // We prefer covered projections. // |