From ef8b1bf3730bd280b8d6fe8da7e5e725eb163a4c Mon Sep 17 00:00:00 2001 From: Malavan Sotheeswaran Date: Wed, 24 May 2023 14:17:53 -0700 Subject: [PATCH] add fPreSnapshot to evictionTimeProc --- src/evict.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evict.cpp b/src/evict.cpp index 899812f19..954a850ac 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -552,7 +552,7 @@ static int evictionTimeProc( UNUSED(clientData); serverAssert(GlobalLocksAcquired()); - if (performEvictions(false) == EVICT_RUNNING) return 0; /* keep evicting */ + if (performEvictions((bool)clientData) == EVICT_RUNNING) return 0; /* keep evicting */ /* For EVICT_OK - things are good, no need to keep evicting. * For EVICT_FAIL - there is nothing left to evict. */ @@ -838,7 +838,7 @@ int performEvictions(bool fPreSnapshot) { if (!isEvictionProcRunning && serverTL->el != nullptr) { isEvictionProcRunning = 1; aeCreateTimeEvent(serverTL->el, 0, - evictionTimeProc, NULL, NULL); + evictionTimeProc, (void*)fPreSnapshot, NULL); } break; }