summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.h
diff options
context:
space:
mode:
authorTyler Kaye <tyler.kaye@mongodb.com>2018-10-22 17:23:11 -0400
committerTyler Kaye <tyler.kaye@mongodb.com>2019-01-28 09:58:54 -0500
commitcdf319123d8e5d3cd169e2a11aec6aea0b951bf1 (patch)
treea8f046ca114f65812b7d01d5289c8aca327bb195 /src/mongo/db/service_context.h
parent82e05d6c201fa59223aa40340a5d4ad84b32ac65 (diff)
downloadmongo-cdf319123d8e5d3cd169e2a11aec6aea0b951bf1.tar.gz
SERVER-34422-ThreadMetrics: ServerStatus now returns the number of active client operations
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r--src/mongo/db/service_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h
index 32091a06ca1..31ad873085a 100644
--- a/src/mongo/db/service_context.h
+++ b/src/mongo/db/service_context.h
@@ -435,6 +435,11 @@ public:
*/
void notifyStartupComplete();
+ /*
+ * Returns the number of active client operations
+ */
+ int getActiveClientOperations();
+
/**
* Set the OpObserver.
*/