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

Method RL_Remove

be/src/util/cache/rl-cache.cc:236–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235template<Cache::EvictionPolicy policy>
236void RLCacheShard<policy>::RL_Remove(RLHandle* e) {
237 e->next->prev = e->prev;
238 e->prev->next = e->next;
239 // Null out the next/prev to make it easy to tell that a handle is
240 // not part of the cache.
241 e->next = nullptr;
242 e->prev = nullptr;
243 DCHECK_GE(usage_, e->charge());
244 usage_ -= e->charge();
245}
246
247template<Cache::EvictionPolicy policy>
248void RLCacheShard<policy>::RL_Append(RLHandle* e) {

Callers

nothing calls this directly

Calls 1

chargeMethod · 0.80

Tested by

no test coverage detected