summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sort.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/sort.cpp')
-rw-r--r--src/mongo/db/exec/sort.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/mongo/db/exec/sort.cpp b/src/mongo/db/exec/sort.cpp
index 6b03db5b26f..aee2c1fa348 100644
--- a/src/mongo/db/exec/sort.cpp
+++ b/src/mongo/db/exec/sort.cpp
@@ -59,28 +59,13 @@ PlanStage::StageState SortStage::doWork(WorkingSetID* out) {
if (code == PlanStage::ADVANCED) {
// The plan must be structured such that a previous stage has attached the sort key
// metadata.
- try {
- spool(id);
- } catch (const AssertionException&) {
- // Propagate runtime errors using the FAILED status code.
- *out = WorkingSetCommon::allocateStatusMember(_ws, exceptionToStatus());
- return PlanStage::FAILURE;
- }
-
+ spool(id);
return PlanStage::NEED_TIME;
} else if (code == PlanStage::IS_EOF) {
// The child has returned all of its results. Record this fact so that subsequent calls
// to 'doWork()' will perform sorting and unspool the sorted results.
_populated = true;
-
- try {
- loadingDone();
- } catch (const AssertionException&) {
- // Propagate runtime errors using the FAILED status code.
- *out = WorkingSetCommon::allocateStatusMember(_ws, exceptionToStatus());
- return PlanStage::FAILURE;
- }
-
+ loadingDone();
return PlanStage::NEED_TIME;
} else {
*out = id;