mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04:00
BUG/MINOR: threads: Don't forget to init each thread toremove_lock.
Don't forget to use HA_SPIN_INIT() on each toremove_lock, or DEBUG_THREAD may not work reliably with it. This should be backported to 2.1 and 2.0.
This commit is contained in:
parent
a9fcecbdf3
commit
f21695bd8b
1 changed files with 1 additions and 0 deletions
|
|
@ -3571,6 +3571,7 @@ out_uri_auth_compat:
|
|||
goto err;
|
||||
idle_conns[i].cleanup_task->process = srv_cleanup_toremove_connections;
|
||||
idle_conns[i].cleanup_task->context = NULL;
|
||||
HA_SPIN_INIT(&idle_conns[i].toremove_lock);
|
||||
MT_LIST_INIT(&idle_conns[i].toremove_conns);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue