summaryrefslogtreecommitdiff
path: root/src/mongo/transport/service_entry_point_impl.cpp
diff options
context:
space:
mode:
authorhuayu-ouyang <huayu.ouyang@mongodb.com>2020-09-17 22:28:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-24 18:13:58 +0000
commitf44ef61bcfe5a58fefd3617040fd1cbf0534594d (patch)
treeb57ca1cbf078bd2b0cff8e36dfb13821abf687ab /src/mongo/transport/service_entry_point_impl.cpp
parent68fe070e7f60879ccbe45e1f6ec953bb99d95075 (diff)
downloadmongo-f44ef61bcfe5a58fefd3617040fd1cbf0534594d.tar.gz
SERVER-50418 Add exhaustHello to serverStatus
Diffstat (limited to 'src/mongo/transport/service_entry_point_impl.cpp')
-rw-r--r--src/mongo/transport/service_entry_point_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/transport/service_entry_point_impl.cpp b/src/mongo/transport/service_entry_point_impl.cpp
index 1824ccf1c94..75dc8f593dc 100644
--- a/src/mongo/transport/service_entry_point_impl.cpp
+++ b/src/mongo/transport/service_entry_point_impl.cpp
@@ -271,6 +271,8 @@ void ServiceEntryPointImpl::appendStats(BSONObjBuilder* bob) const {
bob->append("active", static_cast<int>(sc->getActiveClientOperations()));
bob->append("exhaustIsMaster",
static_cast<int>(IsMasterMetrics::get(sc)->getNumExhaustIsMaster()));
+ bob->append("exhaustHello",
+ static_cast<int>(IsMasterMetrics::get(sc)->getNumExhaustHello()));
bob->append("awaitingTopologyChanges",
static_cast<int>(IsMasterMetrics::get(sc)->getNumAwaitingTopologyChanges()));
}