diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-04-23 16:17:05 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-04-24 12:26:24 -0400 |
commit | c7f47206ec84013a595d764a3542a3e9ac0305fd (patch) | |
tree | 5118d1bca0f8223a13be4a07f5fa58d7137add57 /src/mongo/dbtests/query_stage_sort.cpp | |
parent | e02aec12a1af456223482fa0e968440700f2e7cc (diff) | |
download | mongo-c7f47206ec84013a595d764a3542a3e9ac0305fd.tar.gz |
SERVER-13632 Pass the collection to PlanExecutor and FetchStage
Diffstat (limited to 'src/mongo/dbtests/query_stage_sort.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_sort.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_sort.cpp b/src/mongo/dbtests/query_stage_sort.cpp index 462a82ef248..2da0d135aa3 100644 --- a/src/mongo/dbtests/query_stage_sort.cpp +++ b/src/mongo/dbtests/query_stage_sort.cpp @@ -120,7 +120,8 @@ namespace QueryStageSortTests { params.limit = limit(); // Must fetch so we can look at the doc as a BSONObj. - PlanExecutor runner(ws, new FetchStage(ws, new SortStage(params, ws, ms), NULL)); + PlanExecutor runner( + ws, new FetchStage(ws, new SortStage(params, ws, ms), NULL, coll), coll); // Look at pairs of objects to make sure that the sort order is pairwise (and therefore // totally) correct. @@ -354,7 +355,8 @@ namespace QueryStageSortTests { params.limit = 0; // We don't get results back since we're sorting some parallel arrays. - PlanExecutor runner(ws, new FetchStage(ws, new SortStage(params, ws, ms), NULL)); + PlanExecutor runner( + ws, new FetchStage(ws, new SortStage(params, ws, ms), NULL, coll), coll); Runner::RunnerState runnerState = runner.getNext(NULL, NULL); ASSERT_EQUALS(Runner::RUNNER_ERROR, runnerState); } |