[4.1] 1978ebf fix vsm_free (never incremented)

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Wed Jan 25 17:41:04 CET 2017


commit 1978ebff50643944b4e740ee6f5eb85ded5d0252
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 f24841c..2dcab6f 100644
--- a/bin/varnishd/common/common_vsm.c
+++ b/bin/varnishd/common/common_vsm.c
@@ -180,6 +180,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