removeCold removes all locations pointing to the given cold cache bucket.
(bidx int)
| 48 | |
| 49 | // removeCold removes all locations pointing to the given cold cache bucket. |
| 50 | func (m *locationMap) removeCold(bidx int) { |
| 51 | for key, loc := range m.m { |
| 52 | if loc.isHot() { |
| 53 | continue |
| 54 | } |
| 55 | |
| 56 | if bidx == loc.coldBucketIdx() { |
| 57 | delete(m.m, key) |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // removeHot removes all locations pointing to the hot cache. |
| 63 | func (m *locationMap) removeHot() { |
no test coverage detected