| 822 | } |
| 823 | |
| 824 | void DataCache::Partition::ReleaseResources() { |
| 825 | std::unique_lock<SpinLock> partition_lock(lock_); |
| 826 | if (closed_) return; |
| 827 | closed_ = true; |
| 828 | // Close and delete all backing files in this partition. |
| 829 | cache_files_.clear(); |
| 830 | // Free all memory consumed by the metadata cache. |
| 831 | meta_cache_.reset(); |
| 832 | } |
| 833 | |
| 834 | int64_t DataCache::Partition::Lookup(const CacheKey& cache_key, int64_t bytes_to_read, |
| 835 | uint8_t* buffer) { |
no test coverage detected