mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-17815 tie breaker value should not be static in PlanRanker::scoreTree
This commit is contained in:
parent
80899bf1c2
commit
dcc38a627d
@ -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.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user