diff options
Diffstat (limited to 'src/mongo/db/process_health/test_health_observer.cpp')
-rw-r--r-- | src/mongo/db/process_health/test_health_observer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/process_health/test_health_observer.cpp b/src/mongo/db/process_health/test_health_observer.cpp index ae5747895ea..6ab40e5e799 100644 --- a/src/mongo/db/process_health/test_health_observer.cpp +++ b/src/mongo/db/process_health/test_health_observer.cpp @@ -50,7 +50,8 @@ Future<HealthCheckStatus> TestHealthObserver::periodicCheckImpl( auto code = data["code"].checkAndGetStringData(); auto msg = data["msg"].checkAndGetStringData(); result = Future<HealthCheckStatus>::makeReady(makeSimpleFailedStatus( - 1.0, {Status(ErrorCodes::fromString(code.toString()), msg.toString())})); + Severity::kFailure, + {Status(ErrorCodes::fromString(code.toString()), msg.toString())})); }, [&](const BSONObj& data) { return !data.isEmpty(); }); |