Skip to content
Merged
Changes from all commits
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
3 changes: 1 addition & 2 deletions src/v/cluster/namespaced_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ void namespaced_cache<
* find the eviction spot. Therefore we do not yield here.
*/
size_t iteration = 0;
while (_size >= _max_size() && iteration++ < _size) {
evict(it);
while (_size >= _max_size() && iteration++ < _size && evict(it)) {
}
/**
* If there was no entry to evict from cache, throw cache full error
Expand Down
Loading