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 19:25:08 -0400 |
commit | 0fbe8f851b1aa8b9a63e5c7e904139654134294b (patch) | |
tree | 4f22f2ce5177bd52048687e24179fb05b98b85c3 /src/mongo | |
parent | 5ae1e8d15d5f776a92eecd27896632415ae38efa (diff) | |
download | mongo-0fbe8f851b1aa8b9a63e5c7e904139654134294b.tar.gz |
SERVER-17815 tie breaker value should not be static in PlanRanker::scoreTree
(cherry picked from commit dcc38a627d3e4f92d9df0eaeb97739dfa0280907)
Diffstat (limited to 'src/mongo')
-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 cf89cd170fd..89cf62182ee 100644 --- a/src/mongo/db/query/plan_ranker.cpp +++ b/src/mongo/db/query/plan_ranker.cpp @@ -202,7 +202,7 @@ namespace mongo { // 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. // |