summaryrefslogtreecommitdiff
path: root/src/mongo/db/process_health
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-01-10 22:57:43 +0000
commit0791c57fb7a3e86be3880aa926dfb9bb54f76802 (patch)
tree4abb8597941034f710da1235f7bec1b421d94c93 /src/mongo/db/process_health
parentf97ee7d37f1a0e18f248d0726823445019409b50 (diff)
downloadmongo-0791c57fb7a3e86be3880aa926dfb9bb54f76802.tar.gz
SERVER-62465: After intensities are updated, the resulting health check should run with the new values of intensities set.
Diffstat (limited to 'src/mongo/db/process_health')
-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();
}