]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: 51d: Fix HTX message prefetch
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:53:43 +0000 (11:53 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 5 May 2020 09:53:43 +0000 (11:53 +0200)
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.

src/51d.c

index 42d19296799beef040e7f4a3783d69308e9c2e1f..78ee7483bd290d2d9819de368c8ee707c158edc2 100644 (file)
--- a/src/51d.c
+++ b/src/51d.c
@@ -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;