summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_multiplan.cpp
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-05-18 10:08:23 -0400
committerWaley Chen <waleycz@gmail.com>2016-05-18 10:08:23 -0400
commit7480e5ed2e83b50da03a8e1f1ca1840e280644ef (patch)
treeee75f0c2075050b12b100df1a00e22841da54125 /src/mongo/dbtests/query_stage_multiplan.cpp
parent2a06469e1c07c3f9d1618495803c5c6260d21e86 (diff)
downloadmongo-7480e5ed2e83b50da03a8e1f1ca1840e280644ef.tar.gz
Revert "SERVER-23243 Replace Listener::getElapsedTimeMillis() in scoped_timer.cpp"
This reverts commit 51ee6f1952addc650b1c719cce51fcf460e6e9e8.
Diffstat (limited to 'src/mongo/dbtests/query_stage_multiplan.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_multiplan.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/dbtests/query_stage_multiplan.cpp b/src/mongo/dbtests/query_stage_multiplan.cpp
index a76bfbe22c1..1ea517f1253 100644
--- a/src/mongo/dbtests/query_stage_multiplan.cpp
+++ b/src/mongo/dbtests/query_stage_multiplan.cpp
@@ -114,8 +114,6 @@ public:
protected:
const ServiceContext::UniqueOperationContext _txnPtr = cc().makeOperationContext();
OperationContext& _txn = *_txnPtr;
- ClockSource* const _clock = _txn.getServiceContext()->getFastClockSource();
-
DBDirectClient _client;
};
@@ -182,7 +180,7 @@ public:
mps->addPlan(createQuerySolution(), secondRoot.release(), sharedWs.get());
// Plan 0 aka the first plan aka the index scan should be the best.
- PlanYieldPolicy yieldPolicy(PlanExecutor::YIELD_MANUAL, _clock);
+ PlanYieldPolicy yieldPolicy(PlanExecutor::YIELD_MANUAL, clockSource.get());
mps->pickBestPlan(&yieldPolicy);
ASSERT(mps->bestPlanChosen());
ASSERT_EQUALS(0, mps->bestPlanIdx());
@@ -266,7 +264,7 @@ public:
}
// This sets a backup plan.
- PlanYieldPolicy yieldPolicy(PlanExecutor::YIELD_MANUAL, _clock);
+ PlanYieldPolicy yieldPolicy(PlanExecutor::YIELD_MANUAL, clockSource.get());
mps->pickBestPlan(&yieldPolicy);
ASSERT(mps->bestPlanChosen());
ASSERT(mps->hasBackupPlan());