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.h | |
parent | 6680df6423c05f59d20f5eee3e0e8cfcecaaefeb (diff) | |
download | mongo-96cbfd35f635d64d81b58d807bdfe50d90152415.tar.gz |
SERVER-67703 Add query sort metrics to serverStatus
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 5 |
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). |