[7.3] 3eb01c5ab vsl: Expose vsl_tag_is_masked
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Oct 25 14:33:09 UTC 2023
commit 3eb01c5ab2a5ce152304e81d88ea538b502e99c1
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date: Wed May 10 16:58:19 2023 +0200
vsl: Expose vsl_tag_is_masked
diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index 55a86960a..2416196b2 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -783,6 +783,7 @@ void VSLbs(struct vsl_log *, enum VSL_tag_e tag, const struct strands *s);
void VSLb_ts(struct vsl_log *, const char *event, vtim_real first,
vtim_real *pprev, vtim_real now);
void VSLb_bin(struct vsl_log *, enum VSL_tag_e, ssize_t, const void*);
+int VSL_tag_is_masked(enum VSL_tag_e tag);
static inline void
VSLb_ts_req(struct req *req, const char *event, vtim_real now)
diff --git a/bin/varnishd/cache/cache_shmlog.c b/bin/varnishd/cache/cache_shmlog.c
index b3b2e213d..67150f69a 100644
--- a/bin/varnishd/cache/cache_shmlog.c
+++ b/bin/varnishd/cache/cache_shmlog.c
@@ -130,6 +130,12 @@ vsl_tag_is_masked(enum VSL_tag_e tag)
return (*bm & b);
}
+int
+VSL_tag_is_masked(enum VSL_tag_e tag)
+{
+ return (vsl_tag_is_masked(tag));
+}
+
/*--------------------------------------------------------------------
* Lay down a header fields, and return pointer to the next record
*/
More information about the varnish-commit
mailing list