r3630 - branches/2.0/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Thu Feb 5 14:03:15 CET 2009


Author: tfheen
Date: 2009-02-05 14:03:15 +0100 (Thu, 05 Feb 2009)
New Revision: 3630

Modified:
   branches/2.0/varnish-cache/bin/varnishd/cache_pool.c
Log:
Merge r3427: Only emit debug message for writes that fail



Modified: branches/2.0/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/cache_pool.c	2009-02-05 12:50:50 UTC (rev 3629)
+++ branches/2.0/varnish-cache/bin/varnishd/cache_pool.c	2009-02-05 13:03:15 UTC (rev 3630)
@@ -124,11 +124,12 @@
 	CHECK_OBJ_NOTNULL(w, WORKER_MAGIC);
 	if (*w->wfd >= 0 && w->niov > 0 && w->werr == 0) {
 		i = writev(*w->wfd, w->iov, w->niov);
-		if (i != w->liov)
+		if (i != w->liov) {
 			w->werr++;
-		WSL(w, SLT_Debug, *w->wfd,
-		    "Write error, len = %d/%d, errno = %s",
-		    i, w->liov, strerror(errno));
+			WSL(w, SLT_Debug, *w->wfd,
+			    "Write error, len = %d/%d, errno = %s",
+			    i, w->liov, strerror(errno));
+		}
 	}
 	w->liov = 0;
 	w->niov = 0;



More information about the varnish-commit mailing list