BUG/MINOR: threads: Don't forget to init each thread toremove_lock.
authorOlivier Houchard <cognet@ci0.org>
Mon, 29 Jun 2020 15:48:27 +0000 (17:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jul 2020 13:02:57 +0000 (15:02 +0200)
commit00e12621af67f03e27b47d77227fa598efe12cc6
treea6d36273e4af00df2fde87fd965632599e11a181
parent32049fc5ebdddc7b90de7604e1fef02d32d28fe6
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.

(cherry picked from commit f21695bd8b59d582efc99c85f9a1afac200eda81)
[wt: the lock is called toremove_lock[i] in 2.1]
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cfgparse.c