Commit 59866fcd authored by WuYunlong's avatar WuYunlong Committed by Oran Agra
Browse files

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 f8660233.

(cherry picked from commit c37acb82)
parent 4832cf4f
...@@ -2948,6 +2948,7 @@ void *IOThreadMain(void *myid) { ...@@ -2948,6 +2948,7 @@ void *IOThreadMain(void *myid) {
snprintf(thdname, sizeof(thdname), "io_thd_%ld", id); snprintf(thdname, sizeof(thdname), "io_thd_%ld", id);
redis_set_thread_title(thdname); redis_set_thread_title(thdname);
redisSetCpuAffinity(server.server_cpulist); redisSetCpuAffinity(server.server_cpulist);
makeThreadKillable();
while(1) { while(1) {
/* Wait for start */ /* Wait for start */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment