[4.1] a2ed61d Enable probes for dynamic backends
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Fri Sep 4 15:54:55 CEST 2015
commit a2ed61d0be103d817abcc66b93e49a5720cfb3bd
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Aug 18 11:26:28 2015 +0200
Enable probes for dynamic backends
Make sure probes can be managed outside of the cli thread, now that
backends can be created any time.
diff --git a/bin/varnishd/cache/cache_backend_probe.c b/bin/varnishd/cache/cache_backend_probe.c
index 8060bb7..e0590d8 100644
--- a/bin/varnishd/cache/cache_backend_probe.c
+++ b/bin/varnishd/cache/cache_backend_probe.c
@@ -514,7 +514,6 @@ VBP_Control(const struct backend *be, int enable)
{
struct vbp_target *vt;
- ASSERT_CLI();
CHECK_OBJ_NOTNULL(be, BACKEND_MAGIC);
vt = be->probe;
CHECK_OBJ_NOTNULL(vt, VBP_TARGET_MAGIC);
@@ -545,7 +544,6 @@ VBP_Insert(struct backend *b, const struct vrt_backend_probe *vp,
{
struct vbp_target *vt;
- ASSERT_CLI();
CHECK_OBJ_NOTNULL(b, BACKEND_MAGIC);
CHECK_OBJ_NOTNULL(vp, VRT_BACKEND_PROBE_MAGIC);
@@ -570,7 +568,6 @@ VBP_Remove(struct backend *be)
{
struct vbp_target *vt;
- ASSERT_CLI();
CHECK_OBJ_NOTNULL(be, BACKEND_MAGIC);
vt = be->probe;
CHECK_OBJ_NOTNULL(vt, VBP_TARGET_MAGIC);
More information about the varnish-commit
mailing list