mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-24 23:58:34 -04:00
BUG/MINOR: sample: add missing use_backend/use-server contexts in smp_resolve_args
The use_backend and use-server contexts were not enumerated in
smp_resolve_args, and while use-server doesn't currently take an
expression, at least use_backend supports that, and both entries ought
to be listed for completeness. Now an error in a use_backend rule
becomes more precise, from:
[ALERT] (12373) : config : parsing [use-srv.cfg:33]: unable to find
backend 'foo' referenced in arg 1 of sample fetch
keyword 'nbsrv' in proxy 'echo'.
to:
[ALERT] (12307) : config : parsing [use-srv.cfg:33]: unable to find
backend 'foo' referenced in arg 1 of sample fetch
keyword 'nbsrv' in use_backend expression in proxy
'echo'.
This may be backported though this is totally harmless.
This commit is contained in:
parent
16daaf319c
commit
1a8636d017
1 changed files with 2 additions and 0 deletions
|
|
@ -1295,6 +1295,8 @@ int smp_resolve_args(struct proxy *p, char **err)
|
|||
case ARGC_ACL: ctx = "ACL keyword"; break;
|
||||
case ARGC_SRV: where = "in server directive in"; break;
|
||||
case ARGC_SPOE: where = "in spoe-message directive in"; break;
|
||||
case ARGC_UBK: where = "in use_backend expression in"; break;
|
||||
case ARGC_USRV: where = "in use-server expression in"; break;
|
||||
case ARGC_HERR: where = "in http-error directive in"; break;
|
||||
case ARGC_OT: where = "in ot-scope directive in"; break;
|
||||
case ARGC_TCO: where = "in tcp-request connection expression in"; break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue