diff --git a/src/evict.c b/src/evict.c index 0ada8573f7..5e901acec8 100644 --- a/src/evict.c +++ b/src/evict.c @@ -738,7 +738,7 @@ int performEvictions(void) { size_t mem_used = zmalloc_used_memory(); size_t overhead = freeMemoryGetNotCountedMemory(); mem_used = (mem_used > overhead) ? mem_used - overhead : 0; - if (mem_used < server.maxmemory) { + if (mem_used < server.maxmemory_soft) { result = EVICT_OK; goto update_metrics; }