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

Method allLocalLogs

fdbserver/LogSystemConfig.cpp:127–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127std::vector<TLogInterface> LogSystemConfig::allLocalLogs(bool includeSatellite) const {
128 std::vector<TLogInterface> results;
129 for (int i = 0; i < tLogs.size(); i++) {
130 // skip satellite TLogs, if it was not needed
131 if (!includeSatellite && tLogs[i].locality == tagLocalitySatellite) {
132 continue;
133 }
134 if (tLogs[i].isLocal) {
135 for (int j = 0; j < tLogs[i].tLogs.size(); j++) {
136 if (tLogs[i].tLogs[j].present()) {
137 results.push_back(tLogs[i].tLogs[j].interf());
138 }
139 }
140 }
141 }
142 return results;
143}
144
145int LogSystemConfig::numLogs() const {
146 int numLogs = 0;

Callers 2

Future<Void> runFunction · 0.80

Calls 3

sizeMethod · 0.45
presentMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected