diff options
author | David Storch <david.storch@10gen.com> | 2018-02-28 18:08:21 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2018-03-09 17:20:42 -0500 |
commit | ed1e2b4d2a4987e3744484f9482fdc7a0e119e94 (patch) | |
tree | 8096db9198fb62cd62e2192a38b15faf3d5100a6 /src/mongo/db/query/get_executor.h | |
parent | b9e20190b647fea262a8f4e154bbf18d9934a3ba (diff) | |
download | mongo-ed1e2b4d2a4987e3744484f9482fdc7a0e119e94.tar.gz |
SERVER-33541 Add readConcern level 'snapshot' support for aggregation.
Diffstat (limited to 'src/mongo/db/query/get_executor.h')
-rw-r--r-- | src/mongo/db/query/get_executor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mongo/db/query/get_executor.h b/src/mongo/db/query/get_executor.h index 34857084bf9..6a801c1a81b 100644 --- a/src/mongo/db/query/get_executor.h +++ b/src/mongo/db/query/get_executor.h @@ -91,10 +91,18 @@ StatusWith<std::unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorFind Collection* collection, const NamespaceString& nss, std::unique_ptr<CanonicalQuery> canonicalQuery, - PlanExecutor::YieldPolicy yieldPolicy, size_t plannerOptions = QueryPlannerParams::DEFAULT); /** + * Returns a plan executor for a legacy OP_QUERY find. + */ +StatusWith<std::unique_ptr<PlanExecutor, PlanExecutor::Deleter>> getExecutorLegacyFind( + OperationContext* opCtx, + Collection* collection, + const NamespaceString& nss, + std::unique_ptr<CanonicalQuery> canonicalQuery); + +/** * If possible, turn the provided QuerySolution into a QuerySolution that uses a DistinctNode * to provide results for the distinct command. * |