| 501 | } |
| 502 | |
| 503 | void |
| 504 | rebuild_host_table(Cache *cache) |
| 505 | { |
| 506 | ReplaceablePtr<CacheHostTable>::ScopedWriter hosttable(&cache->hosttable); |
| 507 | build_vol_hash_table(&hosttable->gen_host_rec); |
| 508 | if (hosttable->m_numEntries != 0) { |
| 509 | CacheHostMatcher *hm = hosttable->getHostMatcher(); |
| 510 | CacheHostRecord *h_rec = hm->getDataArray(); |
| 511 | int h_rec_len = hm->getNumElements(); |
| 512 | int i; |
| 513 | for (i = 0; i < h_rec_len; i++) { |
| 514 | build_vol_hash_table(&h_rec[i]); |
| 515 | } |
| 516 | } |
| 517 | } |
| 518 | |
| 519 | void |
| 520 | build_vol_hash_table(CacheHostRecord *cp) |
no test coverage detected