From e80ff9ec709a38b31936f4de758061e471a37b53 Mon Sep 17 00:00:00 2001 From: Alex Cope Date: Fri, 30 Jun 2023 11:23:00 -0700 Subject: [PATCH] fix --- src/evict.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/evict.cpp b/src/evict.cpp index 35d809e62..6c211e444 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -625,7 +625,7 @@ static unsigned long evictionTimeLimitUs() { return ULONG_MAX; /* No limit to eviction time */ } -static void updateSysFreeMemory() { +static void updateSysAvailableMemory() { if (g_pserver->force_eviction_percent) { g_pserver->cron_malloc_stats.sys_available = getMemAvailable(); } @@ -854,7 +854,7 @@ int performEvictions(bool fPreSnapshot) { * across the dbAsyncDelete() call, while the thread can * release the memory all the time. */ if (g_pserver->lazyfree_lazy_eviction) { - updateSysFreeMemory(); + updateSysAvailableMemory(); if (getMaxmemoryState(NULL,NULL,NULL,NULL) == C_OK) { break; } @@ -886,7 +886,7 @@ int performEvictions(bool fPreSnapshot) { cant_free: if (mem_freed > 0) { - updateSysFreeMemory(); + updateSysAvailableMemory(); } if (g_pserver->m_pstorageFactory)