mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-07 12:49:42 +00:00
MEDIUM: proto_tcp: Use the new _HA_ATOMIC_* macros.
Use the new _HA_ATOMIC_* macros and add barriers where needed.
This commit is contained in:
parent
ed87989ab5
commit
4051410fef
@ -1337,16 +1337,16 @@ static enum act_return tcp_exec_action_silent_drop(struct act_rule *rule, struct
|
||||
channel_abort(&strm->res);
|
||||
strm->req.analysers = 0;
|
||||
strm->res.analysers = 0;
|
||||
HA_ATOMIC_ADD(&strm->be->be_counters.denied_req, 1);
|
||||
_HA_ATOMIC_ADD(&strm->be->be_counters.denied_req, 1);
|
||||
if (!(strm->flags & SF_ERR_MASK))
|
||||
strm->flags |= SF_ERR_PRXCOND;
|
||||
if (!(strm->flags & SF_FINST_MASK))
|
||||
strm->flags |= SF_FINST_R;
|
||||
}
|
||||
|
||||
HA_ATOMIC_ADD(&sess->fe->fe_counters.denied_req, 1);
|
||||
_HA_ATOMIC_ADD(&sess->fe->fe_counters.denied_req, 1);
|
||||
if (sess->listener->counters)
|
||||
HA_ATOMIC_ADD(&sess->listener->counters->denied_req, 1);
|
||||
_HA_ATOMIC_ADD(&sess->listener->counters->denied_req, 1);
|
||||
|
||||
return ACT_RET_STOP;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user