]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r15730@catbus: nickm | 2007-10-12 16:47:47 -0400
authorNick Mathewson <nickm@torproject.org>
Fri, 12 Oct 2007 21:33:35 +0000 (21:33 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 12 Oct 2007 21:33:35 +0000 (21:33 +0000)
 Note a way to make routerlist_remove_old_routrs get called way less.

svn:r11902

src/or/routerlist.c

index 5dc0af6666b38a738c177804b66b4b262e8ff408..c974adb0f3e4771b12a336a4861d6ec5b882d451 100644 (file)
@@ -2860,7 +2860,6 @@ routerlist_remove_old_cached_routers_with_id(time_t cutoff, int lo, int hi,
 void
 routerlist_remove_old_routers(void)
 {
-  /* XXXX020 call me less often */
   int i, hi=-1;
   const char *cur_id = NULL;
   time_t now = time(NULL);
@@ -4045,6 +4044,8 @@ update_router_have_minimum_dir_info(void)
     res = 0;
     goto done;
   }
+  /*XXXX020 remove this call. routerlist_remove_old_routers shows up in some
+   * profiles, and this is the biggest caller of that function. */
   routerlist_remove_old_routers();
   networkstatus_list_clean(now);