[master] f1fed55fd space efficiency ocd

Nils Goroll nils.goroll at uplex.de
Wed Mar 6 15:29:06 UTC 2019


commit f1fed55fd3174fbf851b6c5b01c767e48d32de3c
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Mar 6 16:28:37 2019 +0100

    space efficiency ocd

diff --git a/lib/libvmod_directors/vdir.h b/lib/libvmod_directors/vdir.h
index 287d88fae..e448bee43 100644
--- a/lib/libvmod_directors/vdir.h
+++ b/lib/libvmod_directors/vdir.h
@@ -31,15 +31,15 @@ struct vbitmap;
 struct vdir {
 	unsigned				magic;
 #define VDIR_MAGIC				0x99f4b726
-	pthread_rwlock_t			mtx;
 	unsigned				n_backend;
 	unsigned				l_backend;
+	unsigned				n_healthy;
+	pthread_rwlock_t			mtx;
 	VCL_BACKEND				*backend;
 	double					*weight;
 	double					total_weight;
 	VCL_BACKEND				dir;
 	struct vbitmap				*healthy;
-	unsigned				n_healthy;
 };
 
 void vdir_new(VRT_CTX, struct vdir **vdp, const char *vcl_name,


More information about the varnish-commit mailing list