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

Method EvictOneIfNeeded

be/src/util/lru-multi-cache.inline.h:264–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263template <typename KeyType, typename ValueType>
264void LruMultiCache<KeyType, ValueType>::EvictOneIfNeeded() {
265 // SpinLock is locked by the caller public function
266 lock_.DCheckLocked();
267
268 if (!lru_list_.empty() && size_ > capacity_) {
269 EvictOne(lru_list_.back());
270 }
271}
272
273template <typename KeyType, typename ValueType>
274void LruMultiCache<KeyType, ValueType>::EvictOlderThan(

Callers

nothing calls this directly

Calls 2

DCheckLockedMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected