diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-19 18:51:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-19 18:51:44 +0000 |
commit | 16f1d4cb729866bf51e34175aa64441c02df3c50 (patch) | |
tree | eb0bca543da7183975f2068b450b4a45bed6a62d /src/or/routerlist.c | |
parent | ee706649f6fe0dffb405bb5703118594669a921c (diff) | |
download | tor-16f1d4cb729866bf51e34175aa64441c02df3c50.tar.gz tor-16f1d4cb729866bf51e34175aa64441c02df3c50.zip |
Doc RRS_DONT_REMOVE_OLD; improve router_rebuild_store documentation.
svn:r17704
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index e26809d675..03bce599a8 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -598,12 +598,11 @@ _compare_signed_descriptors_by_age(const void **_a, const void **_b) #define RRS_FORCE 1 #define RRS_DONT_REMOVE_OLD 2 -/** If the journal is too long, or if RRS_FORCE is set in <b>flags</b>, then - * atomically replace the router store with the routers currently in our - * routerlist, and clear the journal. Return 0 on success, -1 on failure. - * - * If <b>extrainfo</b> is true, rebuild the extrainfo store; else rebuild the - * router descriptor store. [XXX021 this sentence refers to bad args] +/** If the journal of <b>store</b> is too long, or if RRS_FORCE is set in + * <b>flags</b>, then atomically replace the saved router store with the + * routers currently in our routerlist, and clear the journal. Unless + * RRS_DONT_REMOVE_OLD is set in <b>flags</b>, delete expired routers before + * rebuilding the store. Return 0 on success, -1 on failure. */ static int router_rebuild_store(int flags, desc_store_t *store) |