commit | e9e878a05665dc1f4dd238ead6c01c295879726c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Sep 07 11:29:59 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Sep 07 11:31:58 2018 +0200 |
tree | 9a7ee24b699158b7e3901b2cd0a227140a141f31 | |
parent | 044fd5bc2c37cf53550ad75a9bee8be30de242df [diff] |
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()").