BUG/MEDIUM: servers: Use atomic operations when handling curr_idle_conns.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 15 Feb 2019 17:49:15 +0000 (18:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Feb 2019 18:07:19 +0000 (19:07 +0100)
commite737103173d8cc33a564127f9ec442d41ff75a19
tree37ac03c2d36b15e1ef0a8d4e4b1cd7f226eaaf93
parent67b8caefc95ccd885cb82c6bd031fe385a0538b1
BUG/MEDIUM: servers: Use atomic operations when handling curr_idle_conns.

Use atomic operations when dealing with srv->curr_idle_conns, as it's shared
between threads, otherwise we could get inconsistencies.

This should be backported to 1.9.
include/proto/connection.h
include/proto/server.h
src/backend.c