mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
BUILD: ot: add argument for default value to vars_get_by_name()
The API was extended by commit e352b9dac
("MINOR: vars: make vars_get_by_*
support an optional default value") but I didn't notice that opentracing
was using it, so it broke the build. No backport needed.
This commit is contained in:
parent
54496a6a5b
commit
0c36d0938c
@ -452,7 +452,7 @@ int flt_ot_var_get(struct stream *s, const char *scope, const char *prefix, cons
|
|||||||
(void)memset(&smp, 0, sizeof(smp));
|
(void)memset(&smp, 0, sizeof(smp));
|
||||||
(void)smp_set_owner(&smp, s->be, s->sess, s, opt | SMP_OPT_FINAL);
|
(void)smp_set_owner(&smp, s->be, s->sess, s, opt | SMP_OPT_FINAL);
|
||||||
|
|
||||||
if (vars_get_by_name(var_name, retval, &smp)) {
|
if (vars_get_by_name(var_name, retval, &smp, NULL)) {
|
||||||
retval = flt_ot_sample_to_str(&(smp.data), var_value, sizeof(var_value), err);
|
retval = flt_ot_sample_to_str(&(smp.data), var_value, sizeof(var_value), err);
|
||||||
if (retval != -1)
|
if (retval != -1)
|
||||||
FLT_OT_DBG(3, "data type %d: '%s' = '%s'", smp.data.type, var_name, var_value);
|
FLT_OT_DBG(3, "data type %d: '%s' = '%s'", smp.data.type, var_name, var_value);
|
||||||
|
Loading…
Reference in New Issue
Block a user