diff options
Diffstat (limited to 'src/mongo/db/commands/server_status_servers.cpp')
-rw-r--r-- | src/mongo/db/commands/server_status_servers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/server_status_servers.cpp b/src/mongo/db/commands/server_status_servers.cpp index 34814f3a3df..80cdd8ec25d 100644 --- a/src/mongo/db/commands/server_status_servers.cpp +++ b/src/mongo/db/commands/server_status_servers.cpp @@ -86,10 +86,10 @@ public: networkCounter.append(b); appendMessageCompressionStats(&b); + auto svcCtx = opCtx->getServiceContext(); { BSONObjBuilder section = b.subobjStart("serviceExecutors"); - auto svcCtx = opCtx->getServiceContext(); if (auto executor = transport::ServiceExecutorSynchronous::get(svcCtx)) { executor->appendStats(§ion); } @@ -102,6 +102,8 @@ public: executor->appendStats(§ion); } } + if (auto tl = svcCtx->getTransportLayer()) + tl->appendStats(&b); return b.obj(); } |