summaryrefslogtreecommitdiff
path: root/src
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-11 17:22:23 +0000
commitb924fabb581e11bf7534d5141f44f127dac03f1a (patch)
treeab5663e8c2fbff6335447d358db3c972b237f6ab /src
parente3c2d10228bcb64fbf0bc26e9c8468e47fa3677e (diff)
downloadmongo-b924fabb581e11bf7534d5141f44f127dac03f1a.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)
Diffstat (limited to 'src')
-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();
}