diff options
author | Andrew Witten <andrew.witten@mongodb.com> | 2021-11-09 14:12:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-09 14:35:54 +0000 |
commit | b57e8dad9b3207bd2db8dd81cbf3a1ec8a168150 (patch) | |
tree | 22b1021650397780b8c21132e54b3a89fbe2ecbd /src/mongo/db/process_health/health_monitoring_server_parameters.cpp | |
parent | af19631658dbe05e398e8fb2a79ee572e4b21759 (diff) | |
download | mongo-b57e8dad9b3207bd2db8dd81cbf3a1ec8a168150.tar.gz |
SERVER-61073 fix getParameter on healthMonitoring
Diffstat (limited to 'src/mongo/db/process_health/health_monitoring_server_parameters.cpp')
-rw-r--r-- | src/mongo/db/process_health/health_monitoring_server_parameters.cpp | 4 |
1 files changed, 3 insertions, 1 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 66d0e5fd204..f4aefdf940b 100644 --- a/src/mongo/db/process_health/health_monitoring_server_parameters.cpp +++ b/src/mongo/db/process_health/health_monitoring_server_parameters.cpp @@ -49,7 +49,9 @@ Status HealthMonitoringIntensitiesServerParameter::set(const BSONElement& newVal void HealthMonitoringIntensitiesServerParameter::append(OperationContext*, BSONObjBuilder& b, const std::string& name) { - _data->serialize(&b); + BSONObjBuilder healthMonitoring; + _data->serialize(&healthMonitoring); + b.append(name, healthMonitoring.obj()); } } // namespace mongo |