diff options
author | Ian Boros <ian.boros@mongodb.com> | 2020-11-02 14:47:03 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-19 00:28:40 +0000 |
commit | b110afdd003360552959b58c3e6a8798bc569173 (patch) | |
tree | f73ba621fc9c9a15d2cec39d1727cc0eacd8a0f4 /src/mongo/db/commands/list_collections.cpp | |
parent | ac96dfc44f04202e70c2026be8f434e13a2a0713 (diff) | |
download | mongo-b110afdd003360552959b58c3e6a8798bc569173.tar.gz |
SERVER-50754 introduce MakeBSONObjStage and various perf improvements to SBE
Diffstat (limited to 'src/mongo/db/commands/list_collections.cpp')
-rw-r--r-- | src/mongo/db/commands/list_collections.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mongo/db/commands/list_collections.cpp b/src/mongo/db/commands/list_collections.cpp index b279fe997b7..7be5265f009 100644 --- a/src/mongo/db/commands/list_collections.cpp +++ b/src/mongo/db/commands/list_collections.cpp @@ -375,13 +375,14 @@ public: } } - exec = - uassertStatusOK(plan_executor_factory::make(expCtx, - std::move(ws), - std::move(root), - &CollectionPtr::null, - PlanYieldPolicy::YieldPolicy::NO_YIELD, - cursorNss)); + exec = uassertStatusOK( + plan_executor_factory::make(expCtx, + std::move(ws), + std::move(root), + &CollectionPtr::null, + PlanYieldPolicy::YieldPolicy::NO_YIELD, + false, /* whether owned BSON must be returned */ + cursorNss)); long long batchSize = std::numeric_limits<long long>::max(); if (parsed.getCursor() && parsed.getCursor()->getBatchSize()) { |