MINOR: debug: make ha_stuck_warning() only work for the current thread
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 06:54:43 +0000 (08:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Apr 2025 15:04:35 +0000 (17:04 +0200)
commitfb76ed39b0a55d441220117b17d6c8422b6c421a
tree5974b0d4a472778a8065f502a5c9c97c783c0188
parentd03a0aab05c085ad8e3ac7eb12001cadbc6d97d4
MINOR: debug: make ha_stuck_warning() only work for the current thread

Since we no longer call it with a foreign thread, let's simplify its code
and get rid of the special cases that were relying on ha_thread_dump_fill()
and synchronization with a remote thread. We're not only dumping the
current thread so ha_thread_dump_one() is sufficient.

(cherry picked from commit c16d5415a807f5a46d34ee6aac4c35fd42dac0c0)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/debug.h
src/debug.c
src/wdt.c