summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/plan_ranker.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-04-13 22:30:46 -0400
committerDavid Storch <david.storch@10gen.com>2015-04-13 22:31:19 -0400
commit81a1f70b87b3f3754931829b11faa0a53df64527 (patch)
tree6709655fa170d218abc7e42aeb6710e70e2419c0 /src/mongo/db/query/plan_ranker.cpp
parent14fbbf72657a1d1898a7a9c9db48fc978992fde8 (diff)
downloadmongo-81a1f70b87b3f3754931829b11faa0a53df64527.tar.gz
SERVER-15225 CachedPlanStage can replan poorly performing queries after a trial period
Diffstat (limited to 'src/mongo/db/query/plan_ranker.cpp')
-rw-r--r--src/mongo/db/query/plan_ranker.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/query/plan_ranker.cpp b/src/mongo/db/query/plan_ranker.cpp
index cccffd85470..5a2672bd526 100644
--- a/src/mongo/db/query/plan_ranker.cpp
+++ b/src/mongo/db/query/plan_ranker.cpp
@@ -114,14 +114,6 @@ namespace mongo {
std::stable_sort(scoresAndCandidateindices.begin(), scoresAndCandidateindices.end(),
scoreComparator);
- // Determine whether plans tied for the win.
- if (scoresAndCandidateindices.size() > 1) {
- double bestScore = scoresAndCandidateindices[0].first;
- double runnerUpScore = scoresAndCandidateindices[1].first;
- static const double epsilon = 1e-10;
- why->tieForBest = fabs(bestScore - runnerUpScore) < epsilon;
- }
-
// Update results in 'why'
// Stats and scores in 'why' are sorted in descending order by score.
why->stats.clear();