diff options
author | Ivan Fefer <ivan.fefer@mongodb.com> | 2022-09-16 12:21:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-16 13:14:37 +0000 |
commit | 96cbfd35f635d64d81b58d807bdfe50d90152415 (patch) | |
tree | 097fb53a32d4dc1a94e6a5c9c8259b9d4bf13323 /src/mongo/db/curop.cpp | |
parent | 6680df6423c05f59d20f5eee3e0e8cfcecaaefeb (diff) | |
download | mongo-96cbfd35f635d64d81b58d807bdfe50d90152415.tar.gz |
SERVER-67703 Add query sort metrics to serverStatus
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 36f6ba7ebd6..db67644cd1b 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -1439,6 +1439,9 @@ void OpDebug::setPlanSummaryMetrics(const PlanSummaryStats& planSummaryStats) { additiveMetrics.docsExamined = planSummaryStats.totalDocsExamined; hasSortStage = planSummaryStats.hasSortStage; usedDisk = planSummaryStats.usedDisk; + sortSpills = planSummaryStats.sortSpills; + sortTotalDataSizeBytes = planSummaryStats.sortTotalDataSizeBytes; + keysSorted = planSummaryStats.keysSorted; fromMultiPlanner = planSummaryStats.fromMultiPlanner; replanReason = planSummaryStats.replanReason; } |