| 179 | } |
| 180 | |
| 181 | int LogSet::bestLocationFor(Tag tag) { |
| 182 | if (locality == tagLocalitySatellite) { |
| 183 | return satelliteTagLocations[tag == txsTag ? 0 : tag.id + 1][0]; |
| 184 | } |
| 185 | |
| 186 | // the following logic supports upgrades from 5.X |
| 187 | if (tag == txsTag) |
| 188 | return txsTagOld % logServers.size(); |
| 189 | return tag.id % logServers.size(); |
| 190 | } |
| 191 | |
| 192 | void LogSet::updateLocalitySet(std::vector<LocalityData> const& localities) { |
| 193 | LocalityMap<int>* logServerMap; |
no test coverage detected