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

[or-cvs] We can remove about 30% of the v1 directory bulk by taking



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	dirserv.c 
Log Message:
We can remove about 30% of the v1 directory bulk by taking
out down or invalid nodes. We should do this once we're ready.


Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.318
retrieving revision 1.319
diff -u -p -d -r1.318 -r1.319
--- dirserv.c	29 Mar 2006 08:56:39 -0000	1.318
+++ dirserv.c	29 Mar 2006 09:21:23 -0000	1.319
@@ -752,6 +752,10 @@ live_enough_for_v1_dir(routerinfo_t *ri,
   time_t cutoff = now - ROUTER_MAX_AGE_TO_PUBLISH;
   if (ri->cache_info.published_on < cutoff)
     return 0;
+#if 0
+  if (!ri->is_running || !ri->is_valid)
+    return 0;
+#endif
   return 1;
 }