From b76862e63d014c0ec9d6a52e783e449095e27c69 Mon Sep 17 00:00:00 2001 From: Shivshankar-Reddy Date: Tue, 29 Oct 2024 01:03:48 +0000 Subject: [PATCH] add scale to condition for test failure fix Signed-off-by: Shivshankar-Reddy --- src/evict.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evict.c b/src/evict.c index 5cc7f14596..a2c95f0d70 100644 --- a/src/evict.c +++ b/src/evict.c @@ -729,7 +729,7 @@ int performEvictions(void) { } } /* at this point, the memory is OK, or we have reached the time limit */ - if (server.maxmemory_available) { + if (server.maxmemory_reserved_scale && server.maxmemory_available) { size_t mem_used = zmalloc_used_memory(); size_t overhead = freeMemoryGetNotCountedMemory(); mem_used = (mem_used > overhead) ? mem_used - overhead : 0;