]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: debug: always report harmless/want_rdv even without threads
authorWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 06:52:58 +0000 (08:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 09:50:48 +0000 (11:50 +0200)
This way we have a more consistent output and we can remove annoying
ifdefs.

src/debug.c

index f26f53dd763b3286a40a2f12b2848ab65b695933..282c828df25f894ba04cf5d182b892a2918aa9c5 100644 (file)
@@ -55,12 +55,10 @@ void ha_thread_dump(struct buffer *buf, int thr, int calling_tid)
                      !!(fd_cache_mask & thr_bit),
                      !!(task_profiling_mask & thr_bit));
 
-#ifdef USE_THREAD
        chunk_appendf(buf,
                      " harmless=%d wantrdv=%d",
                      !!(threads_harmless_mask & thr_bit),
                      !!(threads_want_rdv_mask & thr_bit));
-#endif
 
        chunk_appendf(buf, "\n");
        chunk_appendf(buf, "             cpu_ns: poll=%llu now=%llu diff=%llu\n", p, n, n-p);