summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/plan_executor_sbe.h
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2020-11-02 14:47:03 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-19 00:28:40 +0000
commitb110afdd003360552959b58c3e6a8798bc569173 (patch)
treef73ba621fc9c9a15d2cec39d1727cc0eacd8a0f4 /src/mongo/db/query/plan_executor_sbe.h
parentac96dfc44f04202e70c2026be8f434e13a2a0713 (diff)
downloadmongo-b110afdd003360552959b58c3e6a8798bc569173.tar.gz
SERVER-50754 introduce MakeBSONObjStage and various perf improvements to SBE
Diffstat (limited to 'src/mongo/db/query/plan_executor_sbe.h')
-rw-r--r--src/mongo/db/query/plan_executor_sbe.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/query/plan_executor_sbe.h b/src/mongo/db/query/plan_executor_sbe.h
index a3c89842141..7ad5e3e6ea0 100644
--- a/src/mongo/db/query/plan_executor_sbe.h
+++ b/src/mongo/db/query/plan_executor_sbe.h
@@ -46,6 +46,7 @@ public:
std::unique_ptr<CanonicalQuery> cq,
sbe::CandidatePlans candidates,
const CollectionPtr& collection,
+ bool returnOwnedBson,
NamespaceString nss,
bool isOpen,
std::unique_ptr<PlanYieldPolicySBE> yieldPolicy);
@@ -133,6 +134,7 @@ private:
OperationContext* _opCtx;
NamespaceString _nss;
+ const bool _mustReturnOwnedBson;
// CompileCtx owns the instance pointed by _env, so we must keep it around.
sbe::RuntimeEnvironment* _env{nullptr};
@@ -174,5 +176,6 @@ sbe::PlanState fetchNext(sbe::PlanStage* root,
sbe::value::SlotAccessor* resultSlot,
sbe::value::SlotAccessor* recordIdSlot,
BSONObj* out,
- RecordId* dlOut);
+ RecordId* dlOut,
+ bool returnOwnedBson);
} // namespace mongo