mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-02 17:41:47 +00:00
MEDIUM: connections: Use _HA_ATOMIC_*
Use _HA_ATOMIC_ instead of HA_ATOMIC_ because we know we don't need barriers
This commit is contained in:
parent
9f8d821a55
commit
237985b228
@ -693,7 +693,7 @@ static inline void conn_free(struct connection *conn)
|
||||
*/
|
||||
if (conn->idle_time > 0) {
|
||||
struct server *srv = __objt_server(conn->target);
|
||||
HA_ATOMIC_SUB(&srv->curr_idle_conns, 1);
|
||||
_HA_ATOMIC_SUB(&srv->curr_idle_conns, 1);
|
||||
srv->curr_idle_thr[tid]--;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user