| 145 | } |
| 146 | |
| 147 | static void ReleaseBlock(void* arg, void* h) { |
| 148 | Cache* cache = reinterpret_cast<Cache*>(arg); |
| 149 | Cache::Handle* handle = reinterpret_cast<Cache::Handle*>(h); |
| 150 | cache->Release(handle); |
| 151 | } |
| 152 | |
| 153 | // Convert an index iterator value (i.e., an encoded BlockHandle) |
| 154 | // into an iterator over the contents of the corresponding block. |