diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-03 16:45:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-03 16:45:15 -0400 |
commit | 56fbd728c2df7f189390b9a417b4c3ecc3690ede (patch) | |
tree | 85aadfaebc6a18ea50ee109144e51e12e985a821 /src/or/microdesc.h | |
parent | 970715dd8f52a79bbaddfcfa5af1f11608ddacf9 (diff) | |
download | tor-56fbd728c2df7f189390b9a417b4c3ecc3690ede.tar.gz tor-56fbd728c2df7f189390b9a417b4c3ecc3690ede.zip |
Backport microdesc_cache_clean to 0.2.2
Otherwise we have no way to keep authorities' microdesc caches in 0.2.2
from growing without bound.
Diffstat (limited to 'src/or/microdesc.h')
-rw-r--r-- | src/or/microdesc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/microdesc.h b/src/or/microdesc.h index b3e12f8ef0..30cb25d52f 100644 --- a/src/or/microdesc.h +++ b/src/or/microdesc.h @@ -21,6 +21,7 @@ smartlist_t *microdescs_add_list_to_cache(microdesc_cache_t *cache, smartlist_t *descriptors, saved_location_t where, int no_save); +void microdesc_cache_clean(microdesc_cache_t *cache, time_t cutoff, int force); int microdesc_cache_rebuild(microdesc_cache_t *cache); int microdesc_cache_reload(microdesc_cache_t *cache); void microdesc_cache_clear(microdesc_cache_t *cache); |