[master] fa98d41e3 Replace magic number with VSL_IDSHIFT
Nils Goroll
nils.goroll at uplex.de
Tue Jun 13 16:47:07 UTC 2023
commit fa98d41e3a0f491512d7add166877880dcc8187f
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Jun 13 18:39:55 2023 +0200
Replace magic number with VSL_IDSHIFT
diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index 9c1fefe33..8a040ee70 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -355,7 +355,7 @@ VSL_Flush(struct vsl_log *vsl, int overflow)
memcpy(p + VSL_OVERHEAD, vsl->wlb, l);
p[1] = l;
VWMB();
- p[0] = ((((unsigned)SLT__Batch & 0xff) << 24));
+ p[0] = ((((unsigned)SLT__Batch & 0xff) << VSL_IDSHIFT));
vsl->wlp = vsl->wlb;
vsl->wlr = 0;
}
More information about the varnish-commit
mailing list