| 42 | constexpr std::string_view hash_url_parent = "parent"; |
| 43 | |
| 44 | static bool |
| 45 | isWrapped(std::vector<bool> &wrap_around, uint32_t groups) |
| 46 | { |
| 47 | bool all_wrapped = true; |
| 48 | for (uint32_t c = 0; c < groups; c++) { |
| 49 | if (wrap_around[c] == false) { |
| 50 | all_wrapped = false; |
| 51 | } |
| 52 | } |
| 53 | return all_wrapped; |
| 54 | } |
| 55 | |
| 56 | std::shared_ptr<HostRecord> |
| 57 | NextHopConsistentHash::chashLookup(const std::shared_ptr<ATSConsistentHash> &ring, uint32_t cur_ring, ParentResult &result, |