Make IO threads killable so that they can be canceled at any time.

This commit can be cherry picked to 6.0 only if we also cherry pick e9b6077.

(cherry picked from commit 6c6ab16e5a31c09a6ea09f1b4638c121e610566a)
This commit is contained in:
WuYunlong 2020-09-18 16:10:54 +08:00 committed by Oran Agra
parent 4a3330c941
commit 5021ed7c45

View File

@ -2948,6 +2948,7 @@ void *IOThreadMain(void *myid) {
snprintf(thdname, sizeof(thdname), "io_thd_%ld", id);
redis_set_thread_title(thdname);
redisSetCpuAffinity(server.server_cpulist);
makeThreadKillable();
while(1) {
/* Wait for start */