[master] b8dec33 fix vsm_free (never incremented)

Federico G. Schwindt fgsch at lodoss.net
Tue Jan 17 23:30:06 CET 2017


commit b8dec3334e739a07a22dcbeb39aafcd45ed15fb8
Author: Emmanuel Hocdet <manu at gandi.net>
Date:   Mon Jan 16 18:15:50 2017 +0100

    fix vsm_free (never incremented)

diff --git a/bin/varnishd/common/common_vsm.c b/bin/varnishd/common/common_vsm.c
index e91ef24..7b38c4a 100644
--- a/bin/varnishd/common/common_vsm.c
+++ b/bin/varnishd/common/common_vsm.c
@@ -179,6 +179,7 @@ VSM_common_cleaner(struct vsm_sc *sc, struct VSC_C_main *stats)
 			break;
 		VTAILQ_REMOVE(&sc->r_cooling, vr, list);
 		sc->g_cooling -= vr->len;
+		sc->g_free += vr->len;
 		vsm_common_insert_free(sc, vr);
 	}
 	stats->vsm_free = sc->g_free;



More information about the varnish-commit mailing list