From cb6c909664f97f751fe78c0aa3205a9042760c53 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 3 May 2011 17:03:49 -0400 Subject: 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. --- src/or/microdesc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/microdesc.h') diff --git a/src/or/microdesc.h b/src/or/microdesc.h index 30cb25d52..77ce8536b 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); -- cgit v1.2.3