Kaynağa Gözat

mark a bug for nick to tackle -- we're rebuilding our router store more
often than we need to. reported by lodger.


svn:r10241

Roger Dingledine 17 yıl önce
ebeveyn
işleme
b89ad9eb1b
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/or/routerlist.c

+ 2 - 2
src/or/routerlist.c

@@ -271,7 +271,7 @@ _compare_signed_descriptors_by_age(const void **_a, const void **_b)
 static int
 router_rebuild_store(int force, int extrainfo)
 {
-  size_t len = 0;
+  size_t len = 0; /* XXX020 never used */
   or_options_t *options;
   size_t fname_len;
   smartlist_t *chunk_list = NULL;
@@ -394,7 +394,7 @@ router_rebuild_store(int force, int extrainfo)
   write_str_to_file(fname, "", 1);
 
   r = 0;
-  stats->store_len = len;
+  stats->store_len = len; /* XXX020 always 0 */
   stats->journal_len = 0;
   stats->bytes_dropped = 0;
  done: