diff options
author | Waley Chen <waleycz@gmail.com> | 2016-05-17 14:05:13 -0400 |
---|---|---|
committer | Waley Chen <waleycz@gmail.com> | 2016-05-17 17:27:12 -0400 |
commit | 51ee6f1952addc650b1c719cce51fcf460e6e9e8 (patch) | |
tree | 426840377be5d2b698678f009f8328e57a89d40c /src/mongo/dbtests/plan_ranking.cpp | |
parent | 44abb8db32a6fad705854793e397961dfc72d09e (diff) | |
download | mongo-51ee6f1952addc650b1c719cce51fcf460e6e9e8.tar.gz |
SERVER-23243 Replace Listener::getElapsedTimeMillis() in scoped_timer.cpp
Diffstat (limited to 'src/mongo/dbtests/plan_ranking.cpp')
-rw-r--r-- | src/mongo/dbtests/plan_ranking.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/dbtests/plan_ranking.cpp b/src/mongo/dbtests/plan_ranking.cpp index 8871e17a5bf..970f7d02ac9 100644 --- a/src/mongo/dbtests/plan_ranking.cpp +++ b/src/mongo/dbtests/plan_ranking.cpp @@ -51,12 +51,9 @@ #include "mongo/db/query/stage_builder.h" #include "mongo/dbtests/dbtests.h" #include "mongo/stdx/memory.h" -#include "mongo/util/clock_source_mock.h" namespace mongo { -const std::unique_ptr<ClockSource> clockSource = stdx::make_unique<ClockSourceMock>(); - // How we access the external setParameter testing bool. extern std::atomic<bool> internalQueryForceIntersectionPlans; // NOLINT @@ -132,7 +129,8 @@ public: _mps->addPlan(solutions[i], root, ws.get()); } // This is what sets a backup plan, should we test for it. - PlanYieldPolicy yieldPolicy(PlanExecutor::YIELD_MANUAL, clockSource.get()); + PlanYieldPolicy yieldPolicy(PlanExecutor::YIELD_MANUAL, + _txn.getServiceContext()->getFastClockSource()); _mps->pickBestPlan(&yieldPolicy); ASSERT(_mps->bestPlanChosen()); |