Commit c37acb82 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.
parent 647cac5b
...@@ -2966,6 +2966,7 @@ void *IOThreadMain(void *myid) { ...@@ -2966,6 +2966,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