From fa91bd9bfe7d9ab5101c947051ee81469ce14e29 Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 23 Jul 2021 16:02:29 +0000 Subject: [PATCH] We cannot create time events on threads that don't have an event loop Former-commit-id: 3812586a41bb7f974b5d9820c8a68ff34ee8aa9a --- src/evict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evict.cpp b/src/evict.cpp index da2a05a55..802784633 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -834,7 +834,7 @@ int performEvictions(bool fPreSnapshot) { * memory, don't want to spend too much time here. */ if (elapsedUs(evictionTimer) > eviction_time_limit_us) { // We still need to free memory - start eviction timer proc - if (!isEvictionProcRunning) { + if (!isEvictionProcRunning && serverTL->el != nullptr) { isEvictionProcRunning = 1; aeCreateTimeEvent(serverTL->el, 0, evictionTimeProc, NULL, NULL);