diff options
author | David Storch <david.storch@10gen.com> | 2014-10-21 10:24:24 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-10-21 10:32:59 -0400 |
commit | 011dde7e6eac3b73cb1d2a7f004feee9bed99c46 (patch) | |
tree | 32b20bc3224627c93e5781ba72abb45a1f825b37 /src/mongo/db/commands/find_cmd.cpp | |
parent | 0bee61d26e44e26c2678d550990a57ce488f222d (diff) | |
download | mongo-011dde7e6eac3b73cb1d2a7f004feee9bed99c46.tar.gz |
SERVER-15541 SERVER-15652 implement timing-based yielding
Diffstat (limited to 'src/mongo/db/commands/find_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/find_cmd.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/commands/find_cmd.cpp b/src/mongo/db/commands/find_cmd.cpp index 8f39e2624a6..d0194e9d1eb 100644 --- a/src/mongo/db/commands/find_cmd.cpp +++ b/src/mongo/db/commands/find_cmd.cpp @@ -103,7 +103,12 @@ namespace mongo { options |= QueryPlannerParams::INCLUDE_SHARD_FILTER; } - execStatus = getExecutor(txn, collection, cq.release(), &rawExec, options); + execStatus = getExecutor(txn, + collection, + cq.release(), + PlanExecutor::YIELD_AUTO, + &rawExec, + options); } if (!execStatus.isOK()) { @@ -111,7 +116,6 @@ namespace mongo { } scoped_ptr<PlanExecutor> exec(rawExec); - exec->setYieldPolicy(PlanExecutor::YIELD_AUTO); // Got the execution tree. Explain it. return Explain::explainStages(exec.get(), verbosity, out); |