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

Method getAddressString

fdbclient/MonitorLeader.actor.cpp:488–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488std::string ClientLeaderRegInterface::getAddressString() const {
489 if (hostname.present()) {
490 return hostname.get().toString();
491 } else {
492 return getLeader.getEndpoint().getPrimaryAddress().toString();
493 }
494}
495
496// Nominee is the worker among all workers that are considered as leader by one coordinator
497// This function contacts a coordinator coord to ask who is its nominee.

Calls 3

getMethod · 0.65
presentMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected