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

Method toString

fdbclient/MonitorLeader.actor.cpp:439–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439std::string ClusterConnectionString::toString() const {
440 std::string s = key.toString();
441 s += '@';
442 for (auto const& coord : coords) {
443 if (s.find('@') != s.length() - 1) {
444 s += ',';
445 }
446 s += coord.toString();
447 }
448 for (auto const& host : hostnames) {
449 if (s.find('@') != s.length() - 1) {
450 s += ',';
451 }
452 s += host.toString();
453 }
454 return s;
455}
456
457ClientCoordinators::ClientCoordinators(Reference<IClusterConnectionRecord> ccr) : ccr(ccr) {
458 ClusterConnectionString cs = ccr->getConnectionString();

Calls 2

findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected