diff options
Diffstat (limited to 'src/mongo/db/exec/2dnear.cpp')
-rw-r--r-- | src/mongo/db/exec/2dnear.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/exec/2dnear.cpp b/src/mongo/db/exec/2dnear.cpp index dda74d064e3..236d062858f 100644 --- a/src/mongo/db/exec/2dnear.cpp +++ b/src/mongo/db/exec/2dnear.cpp @@ -37,7 +37,11 @@ namespace mongo { - TwoDNear::TwoDNear(const TwoDNearParams& params, WorkingSet* ws) { + // static + const char* TwoDNear::kStageType = "GEO_NEAR_2D"; + + TwoDNear::TwoDNear(const TwoDNearParams& params, WorkingSet* ws) + : _commonStats(kStageType) { _params = params; _workingSet = ws; _initted = false; @@ -149,6 +153,7 @@ namespace mongo { PlanStageStats* TwoDNear::getStats() { _commonStats.isEOF = isEOF(); + _specificStats.keyPattern = _params.indexKeyPattern; auto_ptr<PlanStageStats> ret(new PlanStageStats(_commonStats, STAGE_GEO_NEAR_2D)); ret->specific.reset(new TwoDNearStats(_specificStats)); return ret.release(); |