Describe the bug

I read the redis5.0 source code and found that the keys_freed variable in the freeMemoryIfNeeded(void) function of evict.c does not work, it is always less than or equal to 1.

To reproduce

Redis [BUG] The keys_freed variable in the freeMemoryIfNeeded(void) function of evict.c in redis5.0 does not work, it is always less than or equal to 1 Redis [BUG] The keys_freed variable in the freeMemoryIfNeeded(void) function of evict.c in redis5.0 does not work, it is always less than or equal to 1

Expected behavior

Redis [BUG] The keys_freed variable in the freeMemoryIfNeeded(void) function of evict.c in redis5.0 does not work, it is always less than or equal to 1

Additional information

Comment From: oranagra

Yes. This is fixed in unstable and 6.2. We're not back porting non critical fixes to 5.0 at this stage.