aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-10-18 14:58:45 +0000
committerNick Mathewson <nickm@torproject.org>2007-10-18 14:58:45 +0000
commitdb2c5132c9006d0ca44bea2f0346ad892ab90734 (patch)
treef452cd6afbd7acc2ec283cd4a81731c32cf07864 /src
parent5ff0e4ed567e70777adb0d590fd68325e4edca75 (diff)
downloadtor-db2c5132c9006d0ca44bea2f0346ad892ab90734.tar
tor-db2c5132c9006d0ca44bea2f0346ad892ab90734.tar.gz
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. svn:r12024
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index fdd7d04c0..6c7b252d9 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2960,6 +2960,12 @@ routerlist_remove_old_routers(void)
//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.