GitOrigin-RevId: 777a65940224a278cb70169e5a67573d88e94cfd
This commit is contained in:
parent
d2abc347ac
commit
1fe2b708a9
@ -65,10 +65,17 @@ void FaultFacetImpl::update(HealthCheckStatus status) {
|
||||
}
|
||||
|
||||
void FaultFacetImpl::appendDescription(BSONObjBuilder* builder) const {
|
||||
decltype(_severity) severity;
|
||||
decltype(_description) description;
|
||||
{
|
||||
stdx::lock_guard lk(_mutex);
|
||||
severity = _severity;
|
||||
description = _description;
|
||||
}
|
||||
builder->append("type", FaultFacetType_serializer(getType()));
|
||||
builder->append("severity", _severity);
|
||||
builder->append("severity", severity);
|
||||
builder->append("duration", getDuration().toBSON());
|
||||
builder->append("description", _description);
|
||||
builder->append("description", description);
|
||||
};
|
||||
|
||||
} // namespace process_health
|
||||
|
||||
Loading…
Reference in New Issue
Block a user