Skip to content

Commit e7373e3

Browse files
authored
evicted set to after the main-cache eviction + insert path (#297)
1 parent 0512333 commit e7373e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libCacheSim/cache/eviction/WTinyLFU.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ static void WTinyLFU_evict(cache_t *cache, const request_t *req) {
312312
cache_obj_t *cache_obj =
313313
main_cache->insert(main_cache, params->req_local);
314314
params->n_admit_bytes += params->req_local->obj_size;
315+
evicted = true;
315316

316317
} else {
317318
#if defined(TRACK_DEMOTION)

0 commit comments

Comments
 (0)