We cannot create time events on threads that don't have an event loop
Former-commit-id: 3812586a41bb7f974b5d9820c8a68ff34ee8aa9a
This commit is contained in:
parent
26750791b3
commit
fa91bd9bfe
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user