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

Method DecrementUseCount

be/src/runtime/lib-cache.cc:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void LibCache::DecrementUseCount(LibCacheEntry* entry) {
182 if (entry == nullptr) return;
183 bool can_delete = false;
184 {
185 unique_lock<mutex> lock(entry->lock);
186 --entry->use_count;
187 can_delete = (entry->use_count == 0 && entry->should_remove);
188 }
189 if (can_delete) delete entry;
190}
191
192Status LibCache::GetLocalPath(const std::string& hdfs_lib_file, LibType type,
193 time_t exp_mtime, LibCacheEntryHandle* handle, string* path) {

Callers 3

CloseMethod · 0.80
~LibCacheEntryHandleMethod · 0.80
SetEntryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected