summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/sort.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/sort.h')
-rw-r--r--src/mongo/db/exec/sort.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/exec/sort.h b/src/mongo/db/exec/sort.h
index f437ce0b719..b727771c8bb 100644
--- a/src/mongo/db/exec/sort.h
+++ b/src/mongo/db/exec/sort.h
@@ -72,12 +72,8 @@ public:
std::unique_ptr<PlanStageStats> getStats();
- /**
- * Returns nullptr. Stats related to sort execution must be extracted with 'getStats()', since
- * they are retrieved on demand from the underlying sort execution machinery.
- */
const SpecificStats* getSpecificStats() const final {
- return nullptr;
+ return &_sortExecutor.stats();
}
private:
@@ -86,8 +82,6 @@ private:
SortExecutor _sortExecutor;
- SortStats _specificStats;
-
// Whether or not we have finished loading data into '_sortExecutor'.
bool _populated = false;
};