mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-14 10:29:13 +02:00
BUG/MINOR: http-ana: Increment the backend counters on the backend
A stupid cut-paste bug was introduced in the commitcff0f739e5. Backend counters must of course be incremented on the stream's backend. Not the frontend. No need to backport this patch, except if commitcff0f739e5is backported.
This commit is contained in:
@@ -938,7 +938,7 @@ int http_process_request(struct stream *s, struct channel *req, int an_bit)
|
||||
s->flags |= SF_ERR_INTERNAL;
|
||||
_HA_ATOMIC_ADD(&sess->fe->fe_counters.internal_errors, 1);
|
||||
if (s->flags & SF_BE_ASSIGNED)
|
||||
_HA_ATOMIC_ADD(&sess->fe->be_counters.internal_errors, 1);
|
||||
_HA_ATOMIC_ADD(&s->be->be_counters.internal_errors, 1);
|
||||
if (sess->listener->counters)
|
||||
_HA_ATOMIC_ADD(&sess->listener->counters->internal_errors, 1);
|
||||
goto return_prx_cond;
|
||||
@@ -1100,7 +1100,7 @@ int http_wait_for_request_body(struct stream *s, struct channel *req, int an_bit
|
||||
s->flags |= SF_ERR_INTERNAL;
|
||||
_HA_ATOMIC_ADD(&sess->fe->fe_counters.internal_errors, 1);
|
||||
if (s->flags & SF_BE_ASSIGNED)
|
||||
_HA_ATOMIC_ADD(&sess->fe->be_counters.internal_errors, 1);
|
||||
_HA_ATOMIC_ADD(&s->be->be_counters.internal_errors, 1);
|
||||
if (sess->listener->counters)
|
||||
_HA_ATOMIC_ADD(&sess->listener->counters->internal_errors, 1);
|
||||
goto return_prx_cond;
|
||||
|
||||
Reference in New Issue
Block a user