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

Method allPresentLogs

fdbserver/LogSystemConfig.cpp:155–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155std::vector<TLogInterface> LogSystemConfig::allPresentLogs() const {
156 std::vector<TLogInterface> results;
157 for (int i = 0; i < tLogs.size(); i++) {
158 for (int j = 0; j < tLogs[i].tLogs.size(); j++) {
159 if (tLogs[i].tLogs[j].present()) {
160 results.push_back(tLogs[i].tLogs[j].interf());
161 }
162 }
163 }
164 return results;
165}
166
167std::pair<int8_t, int8_t> LogSystemConfig::getLocalityForDcId(Optional<Key> dcId) const {
168 std::map<int8_t, int> matchingLocalities;

Calls 3

sizeMethod · 0.45
presentMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected