From fa793ee2851ced848d4e7a2e9bd5372525524692 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: 4c88a4ee0e86f6e1c9b18733e48ce50751d01e45 --- src/evict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evict.cpp b/src/evict.cpp index d336bc8b8..012a6afc3 100644 --- a/src/evict.cpp +++ b/src/evict.cpp @@ -766,7 +766,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);