MCPcopy Create free account
hub / github.com/apache/impala / ReleaseResources

Method ReleaseResources

be/src/runtime/io/data-cache.cc:824–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void 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
834int64_t DataCache::Partition::Lookup(const CacheKey& cache_key, int64_t bytes_to_read,
835 uint8_t* buffer) {

Callers 1

~DiskIoMgrMethod · 0.45

Calls 4

clearMethod · 0.65
resetMethod · 0.65
ShutdownMethod · 0.45
JoinMethod · 0.45

Tested by

no test coverage detected