summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r--src/mongo/db/curop.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h
index 998f2400c73..6418883a605 100644
--- a/src/mongo/db/curop.h
+++ b/src/mongo/db/curop.h
@@ -242,7 +242,10 @@ public:
bool hasSortStage{false}; // true if the query plan involves an in-memory sort
- bool usedDisk{false}; // true if the given query used disk
+ bool usedDisk{false}; // true if the given query used disk
+ long long sortSpills{0}; // The total number of spills to disk from sort stages
+ size_t sortTotalDataSizeBytes{0}; // The amount of data we've sorted in bytes
+ long long keysSorted{0}; // The number of keys that we've sorted.
// True if the plan came from the multi-planner (not from the plan cache and not a query with a
// single solution).