[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r12024: Add a log message to router_remove_old_routers to try to fig (in tor/trunk: . src/or)



Author: nickm
Date: 2007-10-18 10:58:45 -0400 (Thu, 18 Oct 2007)
New Revision: 12024

Modified:
   tor/trunk/
   tor/trunk/src/or/routerlist.c
Log:
 r15919@catbus:  nickm | 2007-10-18 10:57:47 -0400
 Add a log message to router_remove_old_routers to try to figure out why peacetime has such a big cache.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r15919] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-10-18 14:50:59 UTC (rev 12023)
+++ tor/trunk/src/or/routerlist.c	2007-10-18 14:58:45 UTC (rev 12024)
@@ -2960,6 +2960,12 @@
 
   //routerlist_assert_ok(routerlist);
 
+  log_info(LD_DIR, "We have %d live routers and %d old router descriptors. "
+           "At most %d must be retained because of networkstatuses.",
+           smartlist_len(routerlist->routers),
+           smartlist_len(routerlist->old_routers),
+           digestmap_size(retain));
+
   /* Now we might have to look at routerlist->old_routers for extraneous
    * members. (We'd keep all the members if we could, but we need to save
    * space.) First, check whether we have too many router descriptors, total.