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

Method getPushLocations

fdbserver/TagPartitionedLogSystem.actor.cpp:1745–1755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1743}
1744
1745void TagPartitionedLogSystem::getPushLocations(VectorRef<Tag> tags,
1746 std::vector<int>& locations,
1747 bool allLocations) const {
1748 int locationOffset = 0;
1749 for (auto& log : tLogs) {
1750 if (log->isLocal && log->logServers.size()) {
1751 log->getPushLocations(tags, locations, locationOffset, allLocations);
1752 locationOffset += log->logServers.size();
1753 }
1754 }
1755}
1756
1757bool TagPartitionedLogSystem::hasRemoteLogs() const {
1758 return logRouterTags > 0 || pseudoLocalities.size() > 0;

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected