diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-05 23:20:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-05 23:20:44 +0000 |
commit | ff9bd0fd3a0acd38e495a3ff7c85011b51c9fcb6 (patch) | |
tree | bad5f24a56ea2825542796c6adacfb7897c27c21 /src/or | |
parent | 9c7eaa7a9ddde07ce0bdc9d471a3ca3d40e20caa (diff) | |
download | tor-ff9bd0fd3a0acd38e495a3ff7c85011b51c9fcb6.tar.gz tor-ff9bd0fd3a0acd38e495a3ff7c85011b51c9fcb6.zip |
r17929@catbus: nickm | 2008-02-05 17:10:26 -0500
Fix or downgrade a few XXX020 items.
svn:r13393
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/directory.c | 5 | ||||
-rw-r--r-- | src/or/networkstatus.c | 2 | ||||
-rw-r--r-- | src/or/routerlist.c | 29 |
3 files changed, 17 insertions, 19 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 7d731de2be..7b4a934459 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2346,8 +2346,9 @@ directory_handle_command_get(dir_connection_t *conn, const char *headers, if ((item = dirvote_get_pending_consensus())) smartlist_add(items, (char*)item); } else if (!current && !strcmp(url, "consensus-signatures")) { - /* XXXX020 the spec says that we should implement - * current/consensus-signatures too. Why? -NM */ + /* XXXX the spec says that we should implement + * current/consensus-signatures too. It doesn't seem to be needed, + * though. */ const char *item; if ((item=dirvote_get_pending_detached_signatures())) smartlist_add(items, (char*)item); diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index a19a4317fe..4eda1b4e0e 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -783,7 +783,7 @@ networkstatus_vote_find_entry(networkstatus_t *ns, const char *digest) _compare_digest_to_routerstatus_entry); } -/*XXXX020 make this static once functions are moved into this file. */ +/*XXXX make this static once functions are moved into this file. */ /** DOCDOC */ int networkstatus_vote_find_entry_idx(networkstatus_t *ns, diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 3d5bbe75cb..3bb69b7ff9 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -633,12 +633,9 @@ router_rebuild_store(int force, desc_store_t *store) log_warn(LD_FS, "We wrote some bytes to a new descriptor file at '%s'," " but when we went to mmap it, it was empty!", fname); } else if (had_any) { - log_notice(LD_FS, "We just removed every descriptor in '%s'. This is " - "okay if we're just starting up after a long time. " - "Otherwise, it's a bug.", - fname); - /* XXX020 should we reduce the severity of the above log - * message? I don't think we see it much in practice. -RD */ + log_info(LD_FS, "We just removed every descriptor in '%s'. This is " + "okay if we're just starting up after a long time. " + "Otherwise, it's a bug.", fname); } } else { log_warn(LD_FS, "Unable to mmap new descriptor file at '%s'.",fname); @@ -1809,8 +1806,8 @@ router_get_by_nickname(const char *nickname, int warn_if_unnamed) ) { if (router_hex_digest_matches(router, nickname)) return router; - else - best_match = router; // XXXX020 NM not exactly right. + /* If we reach this point, we have a ID=name syntax that matches the + * identity but not the name. That isn't an acceptable match. */ } }); @@ -2135,7 +2132,7 @@ routerinfo_free(routerinfo_t *router) } addr_policy_list_free(router->exit_policy); - /* XXXX020 Remove once 414/417 is fixed. But I have a hunch... */ + /* XXXX Remove if this turns out to affect performance. */ memset(router, 77, sizeof(routerinfo_t)); tor_free(router); @@ -2150,7 +2147,7 @@ extrainfo_free(extrainfo_t *extrainfo) tor_free(extrainfo->cache_info.signed_descriptor_body); tor_free(extrainfo->pending_sig); - /* XXXX020 remove this once more bugs go away. */ + /* XXXX remove this if it turns out to slow us down. */ memset(extrainfo, 88, sizeof(extrainfo_t)); /* debug bad memory usage */ tor_free(extrainfo); } @@ -2161,7 +2158,7 @@ signed_descriptor_free(signed_descriptor_t *sd) { tor_free(sd->signed_descriptor_body); - /* XXXX020 remove this once more bugs go away. */ + /* XXXX remove this once more bugs go away. */ memset(sd, 99, sizeof(signed_descriptor_t)); /* Debug bad mem usage */ tor_free(sd); } @@ -2258,7 +2255,7 @@ routerlist_insert(routerlist_t *rl, routerinfo_t *ri) { routerinfo_t *ri_old; { - /* XXXX020 remove this code once bug 417/404 is fixed. */ + /* XXXX Remove if this slows us down. */ routerinfo_t *ri_generated = router_get_my_routerinfo(); tor_assert(ri_generated != ri); } @@ -2293,7 +2290,7 @@ extrainfo_insert(routerlist_t *rl, extrainfo_t *ei) extrainfo_t *ei_tmp; { - /* XXXX020 remove this code once bug 417/404 is fixed. */ + /* XXXX remove this code if it slows us down. */ extrainfo_t *ei_generated = router_get_my_extrainfo(); tor_assert(ei_generated != ei); } @@ -2339,7 +2336,7 @@ static void routerlist_insert_old(routerlist_t *rl, routerinfo_t *ri) { { - /* XXXX020 remove this code once bug 417/404 is fixed. */ + /* XXXX remove this code if it slows us down. */ routerinfo_t *ri_generated = router_get_my_routerinfo(); tor_assert(ri_generated != ri); } @@ -2436,7 +2433,7 @@ routerlist_remove_old(routerlist_t *rl, signed_descriptor_t *sd, int idx) } tor_assert(0 <= idx && idx < smartlist_len(rl->old_routers)); /* XXX020 edmanm's bridge relay triggered the following assert while - * running 0.2.0.12-alpha: */ + * running 0.2.0.12-alpha. */ tor_assert(smartlist_get(rl->old_routers, idx) == sd); tor_assert(idx == sd->routerlist_index); @@ -2486,7 +2483,7 @@ routerlist_replace(routerlist_t *rl, routerinfo_t *ri_old, routerinfo_t *ri_tmp; extrainfo_t *ei_tmp; { - /* XXXX020 remove this code once bug 417/404 is fixed. */ + /* XXXX Remove this if it turns out to slow us down. */ routerinfo_t *ri_generated = router_get_my_routerinfo(); tor_assert(ri_generated != ri_new); } |