summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKshitij Gupta <kshitij.gupta@mongodb.com>2022-01-10 21:53:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-15 17:02:29 +0000
commit70f172c886815918fa94760092e4fb9b5e433be8 (patch)
treeb6a572617e5d083f80166fcb70f5691454b6b0c9
parent4b4be42169630f44a9849ce14ed1769ef37fd31b (diff)
downloadmongo-70f172c886815918fa94760092e4fb9b5e433be8.tar.gz
SERVER-62465: After intensities are updated, the resulting health check should run with the new values of intensities set.
(cherry picked from commit 0791c57fb7a3e86be3880aa926dfb9bb54f76802)
-rw-r--r--src/mongo/db/process_health/health_monitoring_server_parameters.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/process_health/health_monitoring_server_parameters.cpp b/src/mongo/db/process_health/health_monitoring_server_parameters.cpp
index 9007e57b464..010ecb3b64d 100644
--- a/src/mongo/db/process_health/health_monitoring_server_parameters.cpp
+++ b/src/mongo/db/process_health/health_monitoring_server_parameters.cpp
@@ -74,8 +74,8 @@ Status HealthMonitoringIntensitiesServerParameter::setFromString(const std::stri
auto newValue = HealthObserverIntensities::parse(
IDLParserErrorContext("health monitoring intensities"), fromjson(value));
newValue = mergeConfigValues(oldValue, newValue);
- process_health::FaultManager::healthMonitoringIntensitiesUpdated(oldValue, newValue);
**_data = newValue;
+ process_health::FaultManager::healthMonitoringIntensitiesUpdated(oldValue, newValue);
return Status::OK();
}
@@ -84,8 +84,8 @@ Status HealthMonitoringIntensitiesServerParameter::set(const BSONElement& newVal
auto newValue = HealthObserverIntensities::parse(
IDLParserErrorContext("health monitoring intensities"), newValueElement.Obj());
newValue = mergeConfigValues(oldValue, newValue);
- process_health::FaultManager::healthMonitoringIntensitiesUpdated(oldValue, newValue);
**_data = newValue;
+ process_health::FaultManager::healthMonitoringIntensitiesUpdated(oldValue, newValue);
return Status::OK();
}