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

Method key_to_stripe

src/traffic_cache_tool/CacheTool.cc:1024–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022}
1023
1024StripeSM *
1025Cache::key_to_stripe(CryptoHash *key, [[maybe_unused]] const char *hostname, [[maybe_unused]] int host_len)
1026{
1027 uint32_t h = (key->slice32(2) >> DIR_TAG_WIDTH) % STRIPE_HASH_TABLE_SIZE;
1028 return globalVec_stripe[stripes_hash_table[h]];
1029}
1030
1031/* --------------------------------------------------------------------------------------- */
1032Errata

Callers 2

Find_StripeFunction · 0.45
Get_ResponseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected