[master] 6a6358f Polish
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Sat Dec 5 17:20:53 CET 2015
commit 6a6358f5fc5be3f1325fad6fcd6f18257c21dfdf
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Sat Dec 5 17:20:37 2015 +0100
Polish
diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index 664c2c1..54effd1 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -432,7 +432,6 @@ static void
vcl_set_state(struct vcl *vcl, const char *state)
{
struct vrt_ctx ctx;
- const char *target;
unsigned hand = 0;
ASSERT_CLI();
@@ -445,8 +444,7 @@ vcl_set_state(struct vcl *vcl, const char *state)
switch(state[0]) {
case '0':
assert(vcl->temp != vcl_temp_cold);
- target = vcl->busy ? vcl_temp_busy : vcl_temp_cold;
- if (target == vcl_temp_cold && (vcl->temp == vcl_temp_warm ||
+ if (vcl->busy == 0 && (vcl->temp == vcl_temp_warm ||
vcl->temp == vcl_temp_busy)) {
vcl->temp = vcl->refcount ? vcl_temp_cooling :
More information about the varnish-commit
mailing list