[master] 0346b9c1d fix backend.list without -p

Nils Goroll nils.goroll at uplex.de
Wed Mar 6 17:26:07 UTC 2019


commit 0346b9c1d1e4b3beef7dc3cfefaa6bec8aa96018
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Mar 6 18:21:43 2019 +0100

    fix backend.list without -p
    
    I broke the Y from the X/Y column in 8d47bfc8d16c8deb980ace67dc8bbace67405c99
    
    Ref #2896

diff --git a/lib/libvmod_directors/fall_back.c b/lib/libvmod_directors/fall_back.c
index 0ed228524..0838e93fa 100644
--- a/lib/libvmod_directors/fall_back.c
+++ b/lib/libvmod_directors/fall_back.c
@@ -124,6 +124,7 @@ vmod_fallback_list(VRT_CTX, VCL_BACKEND dir, struct vsb *vsb, int pflag,
 		}
 	}
 	nh = vd->n_healthy;
+	u = vd->n_backend;
 	vdir_unlock(vd);
 
 	if (jflag && (pflag)) {
diff --git a/lib/libvmod_directors/vdir.c b/lib/libvmod_directors/vdir.c
index 027611296..dfb8868d9 100644
--- a/lib/libvmod_directors/vdir.c
+++ b/lib/libvmod_directors/vdir.c
@@ -260,6 +260,7 @@ vdir_list(VRT_CTX, struct vdir *vd, struct vsb *vsb, int pflag, int jflag,
 		}
 	}
 	nh = vd->n_healthy;
+	u = vd->n_backend;
 	vdir_unlock(vd);
 
 	if (jflag && (pflag)) {


More information about the varnish-commit mailing list