r4155 - branches/sky/log_error/varnish-cache/bin/varnishd
    sky at projects.linpro.no 
    sky at projects.linpro.no
       
    Tue Jul 28 21:39:58 CEST 2009
    
    
  
Author: sky
Date: 2009-07-28 21:39:57 +0200 (Tue, 28 Jul 2009)
New Revision: 4155
Modified:
   branches/sky/log_error/varnish-cache/bin/varnishd/cache_backend.c
Log:
If we don't find a backend actually tell the world we failed
Modified: branches/sky/log_error/varnish-cache/bin/varnishd/cache_backend.c
===================================================================
--- branches/sky/log_error/varnish-cache/bin/varnishd/cache_backend.c	2009-07-28 19:13:32 UTC (rev 4154)
+++ branches/sky/log_error/varnish-cache/bin/varnishd/cache_backend.c	2009-07-28 19:39:57 UTC (rev 4155)
@@ -223,9 +223,11 @@
 
 	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
 	CHECK_OBJ_NOTNULL(sp->director, DIRECTOR_MAGIC);
-
 	AN (sp->director->getfd);
 	sp->vbe = sp->director->getfd(sp);
+	if (!sp->vbe)
+		WSL(sp->wrk, SLT_Debug, sp->fd, "No backend available from %s (%s:%d)",
+		    sp->director->vcl_name, __FILE__, __LINE__);
 }
 
 /*--------------------------------------------------------------------
    
    
More information about the varnish-commit
mailing list