From: Willy Tarreau Date: Sat, 15 Dec 2018 15:55:36 +0000 (+0100) Subject: BUG/MINOR: logs: leave startup-logs global and not per-thread X-Git-Tag: v1.9-dev11~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a648399c901485a4985f786075535756946113cc;p=thirdparty%2Fhaproxy.git BUG/MINOR: logs: leave startup-logs global and not per-thread Commit f8188c6 ("MEDIUM: threads/logs: Make logs thread-safe") made logs thread-local but it also made the copy of the startup-logs thread-local, meaning that when threads are configured, upon startup the list of startup logs appears to be empty. Let's just remove the THEAD_LOCAL directive there, as the check for the startup period is already present. This fix should be backported to 1.8. --- diff --git a/src/log.c b/src/log.c index e0c74bcd84..debacbfffb 100644 --- a/src/log.c +++ b/src/log.c @@ -250,7 +250,7 @@ THREAD_LOCAL char *logline_rfc5424 = NULL; /* A global buffer used to store all startup alerts/warnings. It will then be * retrieve on the CLI. */ -static THREAD_LOCAL char *startup_logs = NULL; +static char *startup_logs = NULL; struct logformat_var_args { char *name;