Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix chained item evict count
  • Loading branch information
byrnedj committed Jun 27, 2024
commit 4c36d8ecde3754d50cc98a74c968d98127b17d06
1 change: 0 additions & 1 deletion cachelib/allocator/CacheAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -4610,7 +4610,6 @@ CacheAllocator<CacheTrait>::getNextCandidate(TierId tid,
if (chainedItem) {
XDCHECK(toRecycleParent->isMoving());
XDCHECK_EQ(evictedToNext->getRefCount(),2u);
(*stats_.chainedItemEvictions)[tid][pid][cid].inc();
// check if by releasing the item we intend to, we actually
// recycle the candidate.
auto ret = releaseBackToAllocator(*candidate, RemoveContext::kEviction,
Expand Down