We cannot create time events on threads that don't have an event loop
Former-commit-id: 4c88a4ee0e86f6e1c9b18733e48ce50751d01e45
This commit is contained in:
parent
bacaa204cf
commit
e3df237f39
@ -766,7 +766,7 @@ int performEvictions(bool fPreSnapshot) {
|
|||||||
* memory, don't want to spend too much time here. */
|
* memory, don't want to spend too much time here. */
|
||||||
if (elapsedUs(evictionTimer) > eviction_time_limit_us) {
|
if (elapsedUs(evictionTimer) > eviction_time_limit_us) {
|
||||||
// We still need to free memory - start eviction timer proc
|
// We still need to free memory - start eviction timer proc
|
||||||
if (!isEvictionProcRunning) {
|
if (!isEvictionProcRunning && serverTL->el != nullptr) {
|
||||||
isEvictionProcRunning = 1;
|
isEvictionProcRunning = 1;
|
||||||
aeCreateTimeEvent(serverTL->el, 0,
|
aeCreateTimeEvent(serverTL->el, 0,
|
||||||
evictionTimeProc, NULL, NULL);
|
evictionTimeProc, NULL, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user