| 1743 | } |
| 1744 | |
| 1745 | void 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 | |
| 1757 | bool TagPartitionedLogSystem::hasRemoteLogs() const { |
| 1758 | return logRouterTags > 0 || pseudoLocalities.size() > 0; |
no test coverage detected