Avoid running cache GC within completion processes
parent
b52053893c
commit
eac83aad5c
|
@ -248,6 +248,10 @@ class Cache
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Platform::isInputCompletionProcess()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return !random_int(0, 50);
|
return !random_int(0, 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue