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

Method isCurrentGrvProxy

fdbclient/NativeAPI.actor.cpp:2655–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2653}
2654
2655bool DatabaseContext::isCurrentGrvProxy(UID proxyId) const {
2656 for (const auto& proxy : clientInfo->get().grvProxies) {
2657 if (proxy.id() == proxyId)
2658 return true;
2659 }
2660 CODE_PROBE(true, "stale GRV proxy detected");
2661 return false;
2662}
2663
2664// Actor which will wait until the MultiInterface<CommitProxyInterface> returned by the DatabaseContext cx is not
2665// nullptr

Calls 2

getMethod · 0.65
idMethod · 0.45

Tested by

no test coverage detected