* Remove the entry from the cache, but do _not_ free the associated * entry data. The caller takes ownership of the "data" buffer, and * should copy out any fields it wants before detaching. */
| 1510 | * should copy out any fields it wants before detaching. |
| 1511 | */ |
| 1512 | static void detach_delta_base_cache_entry(struct delta_base_cache_entry *ent) |
| 1513 | { |
| 1514 | hashmap_remove(&delta_base_cache, &ent->ent, &ent->key); |
| 1515 | list_del(&ent->lru); |
| 1516 | delta_base_cached -= ent->size; |
| 1517 | free(ent); |
| 1518 | } |
| 1519 | |
| 1520 | static void *cache_or_unpack_entry(struct repository *r, struct packed_git *p, |
| 1521 | off_t base_offset, size_t *base_size, |
no test coverage detected