Skip to content

Commit

Permalink
update condition in server.maxmemory_soft_scale
Browse files Browse the repository at this point in the history
Signed-off-by: hwware <[email protected]>
  • Loading branch information
hwware committed Nov 21, 2024
1 parent 3e5b507 commit 9c3068b
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 @@ -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;
}
Expand Down

0 comments on commit 9c3068b

Please sign in to comment.