diff options
author | Jonathan Reams <jbreams@mongodb.com> | 2018-06-22 15:15:12 -0400 |
---|---|---|
committer | Jonathan Reams <jbreams@mongodb.com> | 2018-10-12 16:29:43 -0400 |
commit | 042426218620111f8f9e299f7b0da7f088b22565 (patch) | |
tree | 16537806f23ed8ecfe6f175af3a0d5ed4daff2ee /src/mongo/db/commands/server_status.cpp | |
parent | 6d66ca689648249fad6d14a738b295d4423121d8 (diff) | |
download | mongo-042426218620111f8f9e299f7b0da7f088b22565.tar.gz |
SERVER-34986 Allow connections to override maxConns based on CIDR range
(cherry picked from commit 1fb52e97b33c6c4ed7855994aeb7c4c4a7e64b1d)
Diffstat (limited to 'src/mongo/db/commands/server_status.cpp')
-rw-r--r-- | src/mongo/db/commands/server_status.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mongo/db/commands/server_status.cpp b/src/mongo/db/commands/server_status.cpp index b3946ccbd12..8db7a16dfb8 100644 --- a/src/mongo/db/commands/server_status.cpp +++ b/src/mongo/db/commands/server_status.cpp @@ -239,10 +239,7 @@ public: auto serviceEntryPoint = opCtx->getServiceContext()->getServiceEntryPoint(); invariant(serviceEntryPoint); - auto stats = serviceEntryPoint->sessionStats(); - bb.append("current", static_cast<int>(stats.numOpenSessions)); - bb.append("available", static_cast<int>(stats.numAvailableSessions)); - bb.append("totalCreated", static_cast<int>(stats.numCreatedSessions)); + serviceEntryPoint->appendStats(&bb); return bb.obj(); } @@ -300,8 +297,10 @@ public: networkCounter.append(b); appendMessageCompressionStats(&b); auto executor = opCtx->getServiceContext()->getServiceExecutor(); - if (executor) + if (executor) { + BSONObjBuilder section(b.subobjStart("serviceExecutorTaskStats")); executor->appendStats(&b); + } return b.obj(); } |