This condition could never be true: https://github.com/antirez/redis/blob/f01f0c02d14149e826532ba20f084244fdf29d20/src/evict.c#L595 because keys_freed is local to loop body: https://github.com/antirez/redis/blob/f01f0c02d14149e826532ba20f084244fdf29d20/src/evict.c#L470 and it is just incremented in couple of (code) lines above: https://github.com/antirez/redis/blob/f01f0c02d14149e826532ba20f084244fdf29d20/src/evict.c#L580

Comment From: trevor211

It's already fixed. Safe to close. @soloestoy

Comment From: oranagra

solved in d1a005ab3963c16b65e805675a76f0e40c723158