diff options
author | David Storch <david.storch@10gen.com> | 2014-06-03 11:04:28 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2014-06-11 11:57:00 -0400 |
commit | 3e39c96ebbd90ebeb91d46f9dace6988a0152763 (patch) | |
tree | 147db9b069d4c65e8233a3f826dde9cefeddf60c /src/mongo/db/exec/skip.cpp | |
parent | c4db5777873c4973facc7ea5ba727565e7658d73 (diff) | |
download | mongo-3e39c96ebbd90ebeb91d46f9dace6988a0152763.tar.gz |
SERVER-14096 explain find() at queryPlanner verbosity
Enable by the setParameter 'enableNewExplain'
Diffstat (limited to 'src/mongo/db/exec/skip.cpp')
-rw-r--r-- | src/mongo/db/exec/skip.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/exec/skip.cpp b/src/mongo/db/exec/skip.cpp index eb6ff6f3d1f..90450169d6d 100644 --- a/src/mongo/db/exec/skip.cpp +++ b/src/mongo/db/exec/skip.cpp @@ -32,8 +32,11 @@ namespace mongo { + // static + const char* SkipStage::kStageType = "SKIP"; + SkipStage::SkipStage(int toSkip, WorkingSet* ws, PlanStage* child) - : _ws(ws), _child(child), _toSkip(toSkip) { } + : _ws(ws), _child(child), _toSkip(toSkip), _commonStats(kStageType) { } SkipStage::~SkipStage() { } @@ -98,7 +101,9 @@ namespace mongo { PlanStageStats* SkipStage::getStats() { _commonStats.isEOF = isEOF(); + _specificStats.skip = _toSkip; auto_ptr<PlanStageStats> ret(new PlanStageStats(_commonStats, STAGE_SKIP)); + ret->specific.reset(new SkipStats(_specificStats)); ret->children.push_back(_child->getStats()); return ret.release(); } |