diff options
Diffstat (limited to 'src/mongo/dbtests/query_stage_sort.cpp')
-rw-r--r-- | src/mongo/dbtests/query_stage_sort.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/query_stage_sort.cpp b/src/mongo/dbtests/query_stage_sort.cpp index b49ccc9dec8..b28abb5b1d5 100644 --- a/src/mongo/dbtests/query_stage_sort.cpp +++ b/src/mongo/dbtests/query_stage_sort.cpp @@ -317,7 +317,7 @@ public: unique_ptr<PlanExecutor> exec(makePlanExecutorWithSortStage(coll)); SortStage* ss = static_cast<SortStage*>(exec->getRootStage()); - QueuedDataStage* ms = static_cast<QueuedDataStage*>(ss->getChildren()[0]); + QueuedDataStage* ms = static_cast<QueuedDataStage*>(ss->getChildren()[0].get()); // Have sort read in data from the queued data stage. const int firstRead = 5; @@ -426,7 +426,7 @@ public: unique_ptr<PlanExecutor> exec(makePlanExecutorWithSortStage(coll)); SortStage* ss = static_cast<SortStage*>(exec->getRootStage()); - QueuedDataStage* ms = static_cast<QueuedDataStage*>(ss->getChildren()[0]); + QueuedDataStage* ms = static_cast<QueuedDataStage*>(ss->getChildren()[0].get()); const int firstRead = 10; // Have sort read in data from the queued data stage. |