We cannot create time events on threads that don't have an event loop

Former-commit-id: 4c88a4ee0e86f6e1c9b18733e48ce50751d01e45
This commit is contained in:
John Sully 2021-07-23 16:02:29 +00:00
parent bacaa204cf
commit e3df237f39

View File

@ -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);