| 1983 | } |
| 1984 | |
| 1985 | Optional<EndpointFailureInfo> DatabaseContext::getEndpointFailureInfo(const Endpoint& endpoint) { |
| 1986 | if (failedEndpointsOnHealthyServersInfo.find(endpoint) == failedEndpointsOnHealthyServersInfo.end()) { |
| 1987 | return Optional<EndpointFailureInfo>(); |
| 1988 | } |
| 1989 | return failedEndpointsOnHealthyServersInfo[endpoint]; |
| 1990 | } |
| 1991 | |
| 1992 | void DatabaseContext::clearFailedEndpointOnHealthyServer(const Endpoint& endpoint) { |
| 1993 | failedEndpointsOnHealthyServersInfo.erase(endpoint); |
no test coverage detected