diff options
author | Milena Ivanova <milena.ivanova@mongodb.com> | 2021-05-28 09:24:11 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-08-05 08:24:59 +0000 |
commit | 98b4a0a2b2c4a230efe1c2ddc3da487a575d670d (patch) | |
tree | 7269ee48a69bfaea61b77a8d3f78bc072735b3b0 /src/mongo/db/curop.h | |
parent | 85976973ce08a8d7dedbcc108d4ace00c25c9b04 (diff) | |
download | mongo-98b4a0a2b2c4a230efe1c2ddc3da487a575d670d.tar.gz |
SERVER-56602 Track usage of match expressions in serverStatus
Diffstat (limited to 'src/mongo/db/curop.h')
-rw-r--r-- | src/mongo/db/curop.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/curop.h b/src/mongo/db/curop.h index 8c3adec3a91..afb48de2440 100644 --- a/src/mongo/db/curop.h +++ b/src/mongo/db/curop.h @@ -775,6 +775,16 @@ public: _tickSource = tickSource; } + /** + * Merge match counters from the current operation into the global map and stop counting. + */ + void stopMatchExprCounter(); + + /** + * Increment the counter for the match expression with given name in the current operation. + */ + void incrementMatchExprCounter(StringData name); + private: class CurOpStack; @@ -846,4 +856,5 @@ private: TickSource* _tickSource = nullptr; }; + } // namespace mongo |