MCPcopy Create free account
hub / github.com/apache/trafficserver / isWrapped

Function isWrapped

src/proxy/http/remap/NextHopConsistentHash.cc:44–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42constexpr std::string_view hash_url_parent = "parent";
43
44static bool
45isWrapped(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
56std::shared_ptr<HostRecord>
57NextHopConsistentHash::chashLookup(const std::shared_ptr<ATSConsistentHash> &ring, uint32_t cur_ring, ParentResult &result,

Callers 1

findNextHopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected