mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-07 03:48:46 +00:00
BUG/MINOR: 51d: Fix HTX message prefetch
An additional argument has been added to smp_prefetch_htx() function in the
commit 778f5ed47
("MEDIUM: checks/http-fetch: Support htx prefetch from a check
for HTTP samples"). But forgot to update call in 51d module.
No need to backport.
This commit is contained in:
parent
b565e72dfb
commit
f11b1fb87f
@ -238,7 +238,7 @@ static void _51d_set_headers(struct sample *smp, fiftyoneDegreesWorkset *ws)
|
||||
|
||||
// No need to null check as this has already been carried out in the
|
||||
// calling method
|
||||
htx = smp_prefetch_htx(smp, chn, 1);
|
||||
htx = smp_prefetch_htx(smp, chn, NULL, 1);
|
||||
|
||||
for (i = 0; i < global_51degrees.header_count; i++) {
|
||||
name.ptr = (global_51degrees.header_names + i)->area;
|
||||
@ -276,7 +276,7 @@ static void _51d_set_device_offsets(struct sample *smp, fiftyoneDegreesDeviceOff
|
||||
|
||||
// No need to null check as this has already been carried out in the
|
||||
// calling method
|
||||
htx = smp_prefetch_htx(smp, chn, 1);
|
||||
htx = smp_prefetch_htx(smp, chn, NULL, 1);
|
||||
|
||||
for (i = 0; i < global_51degrees.header_count; i++) {
|
||||
name.ptr = (global_51degrees.header_names + i)->area;
|
||||
@ -424,7 +424,7 @@ static int _51d_fetch(const struct arg *args, struct sample *smp, const char *kw
|
||||
struct htx *htx;
|
||||
|
||||
chn = (smp->strm ? &smp->strm->req : NULL);
|
||||
htx = smp_prefetch_htx(smp, chn, 1);
|
||||
htx = smp_prefetch_htx(smp, chn, NULL, 1);
|
||||
if (!htx)
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user