summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline_d.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-04-17 02:42:34 -0400
committerEliot Horowitz <eliot@10gen.com>2014-04-17 13:14:04 -0400
commit92748f2572fd6492bfccd56e339b7255017d15ee (patch)
treeb1b40e383042ca10fc52b72e678765bb22e67fcf /src/mongo/db/pipeline/pipeline_d.cpp
parentce52f313ca52759d606886641f44541bd7baf5bd (diff)
downloadmongo-92748f2572fd6492bfccd56e339b7255017d15ee.tar.gz
SERVER-13084: remove many cc() calls from query/exec world
Diffstat (limited to 'src/mongo/db/pipeline/pipeline_d.cpp')
-rw-r--r--src/mongo/db/pipeline/pipeline_d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/pipeline_d.cpp b/src/mongo/db/pipeline/pipeline_d.cpp
index 15615a4cbe5..73e011e7065 100644
--- a/src/mongo/db/pipeline/pipeline_d.cpp
+++ b/src/mongo/db/pipeline/pipeline_d.cpp
@@ -65,6 +65,7 @@ namespace {
}
boost::shared_ptr<Runner> PipelineD::prepareCursorSource(
+ Collection* collection,
const intrusive_ptr<Pipeline>& pPipeline,
const intrusive_ptr<ExpressionContext>& pExpCtx) {
// get the full "namespace" name
@@ -162,7 +163,7 @@ namespace {
projectionForQuery,
&cq);
Runner* rawRunner;
- if (status.isOK() && getRunner(cq, &rawRunner, runnerOptions).isOK()) {
+ if (status.isOK() && getRunner(collection, cq, &rawRunner, runnerOptions).isOK()) {
// success: The Runner will handle sorting for us using an index.
runner.reset(rawRunner);
sortInRunner = true;
@@ -186,7 +187,7 @@ namespace {
&cq));
Runner* rawRunner;
- uassertStatusOK(getRunner(cq, &rawRunner, runnerOptions));
+ uassertStatusOK(getRunner(collection, cq, &rawRunner, runnerOptions));
runner.reset(rawRunner);
}