mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Doc RRS_DONT_REMOVE_OLD; improve router_rebuild_store documentation.
svn:r17704
This commit is contained in:
parent
ee706649f6
commit
16f1d4cb72
1 changed files with 5 additions and 6 deletions
|
@ -598,12 +598,11 @@ _compare_signed_descriptors_by_age(const void **_a, const void **_b)
|
||||||
#define RRS_FORCE 1
|
#define RRS_FORCE 1
|
||||||
#define RRS_DONT_REMOVE_OLD 2
|
#define RRS_DONT_REMOVE_OLD 2
|
||||||
|
|
||||||
/** If the journal is too long, or if RRS_FORCE is set in <b>flags</b>, then
|
/** If the journal of <b>store</b> is too long, or if RRS_FORCE is set in
|
||||||
* atomically replace the router store with the routers currently in our
|
* <b>flags</b>, then atomically replace the saved router store with the
|
||||||
* routerlist, and clear the journal. Return 0 on success, -1 on failure.
|
* routers currently in our routerlist, and clear the journal. Unless
|
||||||
*
|
* RRS_DONT_REMOVE_OLD is set in <b>flags</b>, delete expired routers before
|
||||||
* If <b>extrainfo</b> is true, rebuild the extrainfo store; else rebuild the
|
* rebuilding the store. Return 0 on success, -1 on failure.
|
||||||
* router descriptor store. [XXX021 this sentence refers to bad args]
|
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
router_rebuild_store(int flags, desc_store_t *store)
|
router_rebuild_store(int flags, desc_store_t *store)
|
||||||
|
|
Loading…
Add table
Reference in a new issue