]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http/threads: atomically increment the error snapshot ID
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Sep 2018 09:29:59 +0000 (11:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Sep 2018 09:31:58 +0000 (11:31 +0200)
commite9e878a05665dc1f4dd238ead6c01c295879726c
tree9a7ee24b699158b7e3901b2cd0a227140a141f31
parent044fd5bc2c37cf53550ad75a9bee8be30de242df
BUG/MINOR: http/threads: atomically increment the error snapshot ID

Let's use an atomic increment for the error snapshot, as we'd rather
not assign the same ID to two errors happening in parallel. It's very
unlikely that it will ever happen though.

This patch must be backported to 1.8 with the other one it relies on
("MINOR: thread: implement HA_ATOMIC_XADD()").
src/proto_http.c