summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/plan_ranker.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-06-29 17:53:26 -0400
committerDavid Storch <david.storch@10gen.com>2015-06-29 17:53:26 -0400
commitdcc38a627d3e4f92d9df0eaeb97739dfa0280907 (patch)
tree246f2a49e758203dbeff7745d2fd70558908a7cd /src/mongo/db/query/plan_ranker.cpp
parent80899bf1c22555ebadd1ac0f2f1553174a86bacf (diff)
downloadmongo-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.cpp2
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.
//