summaryrefslogtreecommitdiff
path: root/src/mongo/executor/connection_pool_stats.cpp
diff options
context:
space:
mode:
authorJiawei Yang <jiawei.yang@mongodb.com>2023-04-04 20:32:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-05 00:35:47 +0000
commit6b0141d1559164e212f66d9b62909b9d61df01c8 (patch)
tree6fcc974f40a8b29678b40ff900448bff8cca6ac4 /src/mongo/executor/connection_pool_stats.cpp
parent50acdda3c992e7bace5f0dd560fc94966a7aa870 (diff)
downloadmongo-6b0141d1559164e212f66d9b62909b9d61df01c8.tar.gz
SERVER-66587 rename isEnabledAndIgnoreFCV to isEnabledAndIgnoreFCVUnsafe
Diffstat (limited to 'src/mongo/executor/connection_pool_stats.cpp')
-rw-r--r--src/mongo/executor/connection_pool_stats.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/executor/connection_pool_stats.cpp b/src/mongo/executor/connection_pool_stats.cpp
index 42ea5027b90..e4493f1008f 100644
--- a/src/mongo/executor/connection_pool_stats.cpp
+++ b/src/mongo/executor/connection_pool_stats.cpp
@@ -112,7 +112,8 @@ void ConnectionPoolStats::updateStatsForHost(std::string pool,
}
void ConnectionPoolStats::appendToBSON(mongo::BSONObjBuilder& result, bool forFTDC) {
- const auto isCCHMEnabled = gFeatureFlagConnHealthMetrics.isEnabledAndIgnoreFCV();
+ // (Ignore FCV check): This feature flag doesn't have any upgrade/downgrade concerns.
+ const auto isCCHMEnabled = gFeatureFlagConnHealthMetrics.isEnabledAndIgnoreFCVUnsafe();
result.appendNumber("totalInUse", static_cast<long long>(totalInUse));
result.appendNumber("totalAvailable", static_cast<long long>(totalAvailable));