소스 검색

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

Nick Mathewson 18 년 전
부모
커밋
db2c5132c9
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/or/routerlist.c

+ 6 - 0
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.