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

Method toString

fdbclient/ClusterConnectionFile.actor.cpp:99–104  ·  view source on GitHub ↗

Returns a string representation of this cluster connection record. This will include the type of record and the filename of the cluster file.

Source from the content-addressed store, hash-verified

97// Returns a string representation of this cluster connection record. This will include the type of record and the
98// filename of the cluster file.
99std::string ClusterConnectionFile::toString() const {
100 // This is a fairly naive attempt to generate a URI-like string. It will not account for characters like spaces, it
101 // may use backslashes in windows paths, etc.
102 // SOMEDAY: we should encode this string as a proper URI.
103 return "file://" + filename;
104}
105
106// returns <resolved name, was default file>
107std::pair<std::string, bool> ClusterConnectionFile::lookupClusterFileName(std::string const& filename) {

Callers 2

upToDateMethod · 0.45
persistMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected