diff options
author | David Storch <david.storch@mongodb.com> | 2020-06-24 18:38:08 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-09 14:14:43 +0000 |
commit | a58d7ea75368b103a7f493c0ff6035b9a099b88d (patch) | |
tree | 971c74fde502d5549d46b5e63bcc7b854fb78f32 /src/mongo/db/query/plan_yield_policy_impl.h | |
parent | c37aaac0696c3b4a69df191bd991e474824e43b1 (diff) | |
download | mongo-a58d7ea75368b103a7f493c0ff6035b9a099b88d.tar.gz |
SERVER-48477 Make PlanExecutor interface more generic
After this change, the interface is sensible for both the classic
and SBE engines (with the exception of 'getRootStage()' which is left
as future work).
Diffstat (limited to 'src/mongo/db/query/plan_yield_policy_impl.h')
-rw-r--r-- | src/mongo/db/query/plan_yield_policy_impl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/plan_yield_policy_impl.h b/src/mongo/db/query/plan_yield_policy_impl.h index fcc92669fe7..be4163eedec 100644 --- a/src/mongo/db/query/plan_yield_policy_impl.h +++ b/src/mongo/db/query/plan_yield_policy_impl.h @@ -29,14 +29,14 @@ #pragma once -#include "mongo/db/query/plan_executor.h" +#include "mongo/db/query/plan_executor_impl.h" #include "mongo/db/query/plan_yield_policy.h" namespace mongo { class PlanYieldPolicyImpl final : public PlanYieldPolicy { public: - PlanYieldPolicyImpl(PlanExecutor* exec, PlanYieldPolicy::YieldPolicy policy); + PlanYieldPolicyImpl(PlanExecutorImpl* exec, PlanYieldPolicy::YieldPolicy policy); private: Status yield(OperationContext* opCtx, std::function<void()> whileYieldingFn = nullptr) override; @@ -57,7 +57,7 @@ private: // The plan executor which this yield policy is responsible for yielding. Must not outlive the // plan executor. - PlanExecutor* const _planYielding; + PlanExecutorImpl* const _planYielding; }; } // namespace mongo |