summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sort.cpp
diff options
context:
space:
mode:
authorPawel Terlecki <pawel.terlecki@mongodb.com>2019-01-29 14:25:20 -0500
committerPawel Terlecki <pawel.terlecki@mongodb.com>2019-01-30 12:59:42 -0500
commitb7df0530e35a23bc1139f22a84ff4ba8b7688b4a (patch)
treeb8d3967252d3b207ee1925227cfd31266adf2130 /src/mongo/db/exec/sort.cpp
parentd1771e696b6df883af70eedaaa0733548c573fec (diff)
downloadmongo-b7df0530e35a23bc1139f22a84ff4ba8b7688b4a.tar.gz
SERVER-38316 Consolidate PlanExecutor::DEAD and PlanExecutor::FAILURE
Replaced PlanStage::DEAD with PlanStage::FAILURE. In the subsequent commit, PlanExecutor::DEAD will be taken care of in the next commit
Diffstat (limited to 'src/mongo/db/exec/sort.cpp')
-rw-r--r--src/mongo/db/exec/sort.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/sort.cpp b/src/mongo/db/exec/sort.cpp
index 918f2a873a1..6ddf5b4078e 100644
--- a/src/mongo/db/exec/sort.cpp
+++ b/src/mongo/db/exec/sort.cpp
@@ -151,7 +151,7 @@ PlanStage::StageState SortStage::doWork(WorkingSetID* out) {
_resultIterator = _data.begin();
_sorted = true;
return PlanStage::NEED_TIME;
- } else if (PlanStage::FAILURE == code || PlanStage::DEAD == code) {
+ } else if (PlanStage::FAILURE == code) {
// The stage which produces a failure is responsible for allocating a working set member
// with error details.
invariant(WorkingSet::INVALID_ID != id);