Add tss mapping data to the reply, if any of the included storage servers have a TSS pair
| 1816 | |
| 1817 | // Add tss mapping data to the reply, if any of the included storage servers have a TSS pair |
| 1818 | void maybeAddTssMapping(GetKeyServerLocationsReply& reply, |
| 1819 | ProxyCommitData* commitData, |
| 1820 | std::unordered_set<UID>& included, |
| 1821 | UID ssId) { |
| 1822 | if (!included.count(ssId)) { |
| 1823 | auto mappingItr = commitData->tssMapping.find(ssId); |
| 1824 | if (mappingItr != commitData->tssMapping.end()) { |
| 1825 | reply.resultsTssMapping.push_back(*mappingItr); |
| 1826 | } |
| 1827 | included.insert(ssId); |
| 1828 | } |
| 1829 | } |
| 1830 | |
| 1831 | void addTagMapping(GetKeyServerLocationsReply& reply, ProxyCommitData* commitData) { |
| 1832 | for (const auto& [_, shard] : reply.results) { |