summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/query_stage_sort.cpp
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2015-01-09 11:23:15 -0500
committerJason Rassi <rassi@10gen.com>2015-01-12 12:40:45 -0500
commit2468153c690dbe8312a10829d3cd7565ed90c1e1 (patch)
tree5f4bd3d5326face3d7f6a30b48dae5fbcd0253e2 /src/mongo/dbtests/query_stage_sort.cpp
parentae7a1a999b9352948cb49dfaf80a4ad3c7eabd5d (diff)
downloadmongo-2468153c690dbe8312a10829d3cd7565ed90c1e1.tar.gz
SERVER-16659 Rename MockStage to QueuedDataStage
It is no longer the case that this stage is only used for testing.
Diffstat (limited to 'src/mongo/dbtests/query_stage_sort.cpp')
-rw-r--r--src/mongo/dbtests/query_stage_sort.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/dbtests/query_stage_sort.cpp b/src/mongo/dbtests/query_stage_sort.cpp
index d182a91e12f..bb3ef814899 100644
--- a/src/mongo/dbtests/query_stage_sort.cpp
+++ b/src/mongo/dbtests/query_stage_sort.cpp
@@ -30,8 +30,8 @@
#include "mongo/db/catalog/database.h"
#include "mongo/db/dbdirectclient.h"
#include "mongo/db/exec/fetch.h"
-#include "mongo/db/exec/mock_stage.h"
#include "mongo/db/exec/plan_stage.h"
+#include "mongo/db/exec/queued_data_stage.h"
#include "mongo/db/exec/sort.h"
#include "mongo/db/json.h"
#include "mongo/db/query/plan_executor.h"
@@ -77,7 +77,7 @@ namespace QueryStageSortTests {
/**
* We feed a mix of (key, unowned, owned) data to the sort stage.
*/
- void insertVarietyOfObjects(MockStage* ms, Collection* coll) {
+ void insertVarietyOfObjects(QueuedDataStage* ms, Collection* coll) {
set<RecordId> locs;
getLocs(&locs, coll);
@@ -111,7 +111,7 @@ namespace QueryStageSortTests {
*/
void sortAndCheck(int direction, Collection* coll) {
WorkingSet* ws = new WorkingSet();
- MockStage* ms = new MockStage(ws);
+ QueuedDataStage* ms = new QueuedDataStage(ws);
// Insert a mix of the various types of data.
insertVarietyOfObjects(ms, coll);
@@ -274,7 +274,7 @@ namespace QueryStageSortTests {
// Build the mock scan stage which feeds the data.
WorkingSet ws;
- auto_ptr<MockStage> ms(new MockStage(&ws));
+ auto_ptr<QueuedDataStage> ms(new QueuedDataStage(&ws));
insertVarietyOfObjects(ms.get(), coll);
SortStageParams params;
@@ -359,7 +359,7 @@ namespace QueryStageSortTests {
}
WorkingSet* ws = new WorkingSet();
- MockStage* ms = new MockStage(ws);
+ QueuedDataStage* ms = new QueuedDataStage(ws);
for (int i = 0; i < numObj(); ++i) {
WorkingSetMember member;