[master] b1a1c8a62 Adjust the segment length for the cluster allocation offset
Martin Blix Grydeland
martin at varnish-software.com
Mon Sep 9 08:23:07 UTC 2019
commit b1a1c8a6217f9eb8da25ff1d408fc91859f2e57d
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Sep 4 17:54:54 2019 +0200
Adjust the segment length for the cluster allocation offset
Clusters VSM allocations start at offset 16. Make sure that the published
segment includes that adjustment.
diff --git a/bin/varnishd/common/common_vsmw.c b/bin/varnishd/common/common_vsmw.c
index ee69eea56..71ced508f 100644
--- a/bin/varnishd/common/common_vsmw.c
+++ b/bin/varnishd/common/common_vsmw.c
@@ -317,7 +317,7 @@ VSMW_NewCluster(struct vsmw *vsmw, size_t len, const char *pfx)
ALLOC_OBJ(seg, VSMWSEG_MAGIC);
AN(seg);
vc->cseg = seg;
- seg->len = len;
+ seg->len = vc->len;
seg->cluster = vc;
REPLACE(seg->class, "");
REPLACE(seg->id, "");
More information about the varnish-commit
mailing list