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/count.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/count.cpp')
-rw-r--r-- | src/mongo/db/exec/count.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/exec/count.cpp b/src/mongo/db/exec/count.cpp index 29abe83d7b2..afe6e32e606 100644 --- a/src/mongo/db/exec/count.cpp +++ b/src/mongo/db/exec/count.cpp @@ -33,6 +33,9 @@ namespace mongo { + // static + const char* Count::kStageType = "COUNT"; + Count::Count(const CountParams& params, WorkingSet* workingSet) : _workingSet(workingSet), _descriptor(params.descriptor), @@ -40,7 +43,8 @@ namespace mongo { _btreeCursor(NULL), _params(params), _hitEnd(false), - _shouldDedup(params.descriptor->isMultikey()) { } + _shouldDedup(params.descriptor->isMultikey()), + _commonStats(kStageType) { } void Count::initIndexCursor() { CursorOptions cursorOptions; |