Commit 46b05e4e authored by Lasse Karstensen's avatar Lasse Karstensen

Merge branch '4.0' of git.varnish-cache.org:varnish-cache into 4.0

parents 96ad1189 43323536
......@@ -136,7 +136,9 @@ VBE_DropRefVcl(struct backend *b)
CHECK_OBJ_NOTNULL(b, BACKEND_MAGIC);
ASSERT_CLI();
Lck_Lock(&b->mtx);
assert(b->vsc->vcls > 0);
b->vsc->vcls--;
VBE_DropRefLocked(b, NULL);
}
......@@ -196,7 +198,9 @@ VBE_AddBackend(struct cli *cli, const struct vrt_backend *vb)
if (vb->ipv6_suckaddr != NULL &&
VSA_Compare(b->ipv6, vb->ipv6_suckaddr))
continue;
Lck_Lock(&b->mtx);
b->refcount++;
Lck_Unlock(&b->mtx);
b->vsc->vcls++;
return (b);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment