]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: logs: leave startup-logs global and not per-thread
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 15:55:36 +0000 (16:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 15:55:36 +0000 (16:55 +0100)
commita648399c901485a4985f786075535756946113cc
tree5ccfa12eca438b4e812f9783980bb951c87d0f94
parent8459f25e03ec89433e70368e2dacf59e81507112
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.
src/log.c