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

Method updateFailedEndpointRefreshTime

fdbclient/NativeAPI.actor.cpp:1977–1983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1975}
1976
1977void DatabaseContext::updateFailedEndpointRefreshTime(const Endpoint& endpoint) {
1978 if (failedEndpointsOnHealthyServersInfo.find(endpoint) == failedEndpointsOnHealthyServersInfo.end()) {
1979 // The endpoint is not failed. Nothing to update.
1980 return;
1981 }
1982 failedEndpointsOnHealthyServersInfo[endpoint].lastRefreshTime = now();
1983}
1984
1985Optional<EndpointFailureInfo> DatabaseContext::getEndpointFailureInfo(const Endpoint& endpoint) {
1986 if (failedEndpointsOnHealthyServersInfo.find(endpoint) == failedEndpointsOnHealthyServersInfo.end()) {

Callers 1

checkOnlyEndpointFailedFunction · 0.80

Calls 3

nowFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected