[master] 04dc5a1 Simplify

Poul-Henning Kamp phk at FreeBSD.org
Tue Feb 23 20:37:15 CET 2016


commit 04dc5a1191a6b19063562d3d8fdc3748ec4edee5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Feb 23 19:37:05 2016 +0000

    Simplify

diff --git a/bin/varnishd/cache/cache_fetch.c b/bin/varnishd/cache/cache_fetch.c
index 8febc5e..0a4471e 100644
--- a/bin/varnishd/cache/cache_fetch.c
+++ b/bin/varnishd/cache/cache_fetch.c
@@ -885,7 +885,7 @@ vbf_stp_error(struct worker *wrk, struct busyobj *bo)
 		ll -= l;
 		o += l;
 	}
-	AZ(ObjSetU64(wrk, bo->fetch_objcore, OA_LEN, VSB_len(synth_body) - ll));
+	AZ(ObjSetU64(wrk, bo->fetch_objcore, OA_LEN, o));
 	VSB_delete(synth_body);
 	HSH_Unbusy(wrk, bo->fetch_objcore);
 	ObjSetState(wrk, bo->fetch_objcore, BOS_FINISHED);



More information about the varnish-commit mailing list