MCPcopy Create free account
hub / github.com/apple/foundationdb / getEndpointFailureInfo

Method getEndpointFailureInfo

fdbclient/NativeAPI.actor.cpp:1985–1990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

checkOnlyEndpointFailedFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected