diff options
Diffstat (limited to 'src/mongo/db/exec/text.cpp')
-rw-r--r-- | src/mongo/db/exec/text.cpp | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/mongo/db/exec/text.cpp b/src/mongo/db/exec/text.cpp index 424b372b017..295baa10b14 100644 --- a/src/mongo/db/exec/text.cpp +++ b/src/mongo/db/exec/text.cpp @@ -70,34 +70,12 @@ bool TextStage::isEOF() { return child()->isEOF(); } -PlanStage::StageState TextStage::work(WorkingSetID* out) { - ++_commonStats.works; - - // Adds the amount of time taken by work() to executionTimeMillis. - ScopedTimer timer(&_commonStats.executionTimeMillis); - +PlanStage::StageState TextStage::doWork(WorkingSetID* out) { if (isEOF()) { return PlanStage::IS_EOF; } - PlanStage::StageState stageState = child()->work(out); - - // Increment common stats counters that are specific to the return value of work(). - switch (stageState) { - case PlanStage::ADVANCED: - ++_commonStats.advanced; - break; - case PlanStage::NEED_TIME: - ++_commonStats.needTime; - break; - case PlanStage::NEED_YIELD: - ++_commonStats.needYield; - break; - default: - break; - } - - return stageState; + return child()->work(out); } unique_ptr<PlanStageStats> TextStage::getStats() { |