diff options
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; |