diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-04-26 10:13:25 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-27 21:40:13 -0400 |
commit | 920475f293a8a69dd846cd06249b4b699857a3d4 (patch) | |
tree | 724e3cab92a42745f36af074a839e33183557a47 /src/or/conscache.h | |
parent | 466e9140888f0a6a504dc642a0426bd2352f0490 (diff) | |
download | tor-920475f293a8a69dd846cd06249b4b699857a3d4.tar.gz tor-920475f293a8a69dd846cd06249b4b699857a3d4.zip |
New force-delete option on consensus_cache_delete_pending()
If we're out of file space in the storage directory, we'll need to
get rid of old files fast.
Diffstat (limited to 'src/or/conscache.h')
-rw-r--r-- | src/or/conscache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/conscache.h b/src/or/conscache.h index f3110e2964..ea27733df6 100644 --- a/src/or/conscache.h +++ b/src/or/conscache.h @@ -17,7 +17,8 @@ struct sandbox_cfg_elem; int consensus_cache_register_with_sandbox(consensus_cache_t *cache, struct sandbox_cfg_elem **cfg); void consensus_cache_unmap_lazy(consensus_cache_t *cache, time_t cutoff); -void consensus_cache_delete_pending(consensus_cache_t *cache); +void consensus_cache_delete_pending(consensus_cache_t *cache, + int force); consensus_cache_entry_t *consensus_cache_add(consensus_cache_t *cache, const config_line_t *labels, const uint8_t *data, |