summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.h
diff options
context:
space:
mode:
authorMilena Ivanova <milena.ivanova@mongodb.com>2021-05-28 09:24:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-08-05 08:24:59 +0000
commit98b4a0a2b2c4a230efe1c2ddc3da487a575d670d (patch)
tree7269ee48a69bfaea61b77a8d3f78bc072735b3b0 /src/mongo/db/curop.h
parent85976973ce08a8d7dedbcc108d4ace00c25c9b04 (diff)
downloadmongo-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.h11
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