[or-cvs] Make directory caches a little less chatty when logging

Nick Mathewson nickm at seul.org
Tue Dec 27 06:05:56 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv5135/src/or

Modified Files:
	routerlist.c 
Log Message:
Make directory caches a little less chatty when logging

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.405
retrieving revision 1.406
diff -u -p -d -r1.405 -r1.406
--- routerlist.c	27 Dec 2005 05:58:12 -0000	1.405
+++ routerlist.c	27 Dec 2005 06:05:54 -0000	1.406
@@ -3448,6 +3448,8 @@ update_router_descriptor_cache_downloads
       continue;
     }
     smartlist_t *dl = download_from[i];
+    if (! smartlist_len(dl))
+      continue;
     info(LD_DIR, "Requesting %d descriptors from authority \"%s\"",
          smartlist_len(dl), ds->nickname);
     for (j=0; j < smartlist_len(dl); j += MAX_DL_PER_REQUEST) {



More information about the tor-commits mailing list