summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/count.cpp
diff options
context:
space:
mode:
authorQingyang Chen <qingyang.chen@10gen.com>2015-07-23 17:54:46 -0400
committerQingyang Chen <qingyang.chen@10gen.com>2015-07-23 18:51:09 -0400
commitcd5bff570f1e17e43cbd81d9eb56fa6097c18b3c (patch)
treefb4b2666f6b958d597a1c0e6bf381447dd90185a /src/mongo/db/exec/count.cpp
parent8ed62df342f6451a579e16968b662cb6bb3be2aa (diff)
downloadmongo-cd5bff570f1e17e43cbd81d9eb56fa6097c18b3c.tar.gz
SERVER-18913 Remove redundant test in CountStage::work()
Diffstat (limited to 'src/mongo/db/exec/count.cpp')
-rw-r--r--src/mongo/db/exec/count.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/exec/count.cpp b/src/mongo/db/exec/count.cpp
index bb21de3cf81..40bc4e36c5c 100644
--- a/src/mongo/db/exec/count.cpp
+++ b/src/mongo/db/exec/count.cpp
@@ -128,7 +128,7 @@ PlanStage::StageState CountStage::work(WorkingSetID* out) {
return PlanStage::IS_EOF;
} else if (PlanStage::DEAD == state) {
return state;
- } else if (PlanStage::FAILURE == state || PlanStage::DEAD == state) {
+ } else if (PlanStage::FAILURE == state) {
*out = id;
// If a stage fails, it may create a status WSM to indicate why it failed, in which
// case 'id' is valid. If ID is invalid, we create our own error message.