Skip to content

Commit

Permalink
fix for the test failure
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed Oct 29, 2024
1 parent c6db98b commit fe7fcd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evict.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe7fcd1

Please sign in to comment.