diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-05-03 17:03:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-05-03 17:03:49 -0400 |
commit | cb6c909664f97f751fe78c0aa3205a9042760c53 (patch) | |
tree | 9b63fc41deb0190708547c69c01bdf906a7ec2f3 /src/or/microdesc.h | |
parent | 56fbd728c2df7f189390b9a417b4c3ecc3690ede (diff) | |
download | tor-cb6c909664f97f751fe78c0aa3205a9042760c53.tar.gz tor-cb6c909664f97f751fe78c0aa3205a9042760c53.zip |
Rebuild the microdesc cache when a sufficient number of bytes are dropped
Previously on 0.2.2, we'd never clean the cache. Now that we can
clean it, we want to add a condition to rebuild it: that should happen
whenever we have dropped enough microdescriptors that we could save a
lot of space.
No changes file, since 0.2.3 doesn't need one and 0.2.2 already has some
changes files for the backport of the microdesc_clean_cahce() function.
Diffstat (limited to 'src/or/microdesc.h')
-rw-r--r-- | src/or/microdesc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/microdesc.h b/src/or/microdesc.h index 30cb25d52f..77ce8536bc 100644 --- a/src/or/microdesc.h +++ b/src/or/microdesc.h @@ -22,7 +22,7 @@ smartlist_t *microdescs_add_list_to_cache(microdesc_cache_t *cache, 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_rebuild(microdesc_cache_t *cache, int force); int microdesc_cache_reload(microdesc_cache_t *cache); void microdesc_cache_clear(microdesc_cache_t *cache); |