diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-29 13:03:36 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-29 13:03:36 -0400 |
commit | da159c45e2447c729601a1393e93de908ba27c16 (patch) | |
tree | 8c3e518856fff0645bd858d7e227b418c94915a4 /src/or/conscache.h | |
parent | 5e97b34daa27f6e0ca1c233e31d00ab8620284f0 (diff) | |
download | tor-da159c45e2447c729601a1393e93de908ba27c16.tar.gz tor-da159c45e2447c729601a1393e93de908ba27c16.zip |
On windows, allow many entries in conscache directories
Since we can't be sure that we can unlink enough files on windows
here, let's let the number of permitted entries grow huge if it
really must.
We do this by letting the storagedir hold lots of entries, but still
trying to keep the number of entries under the configured limit. We
also have to tell consdiffmgr not to freak out if it can't actually
remove enough entries.
Part of a fix for bug 22752
Diffstat (limited to 'src/or/conscache.h')
-rw-r--r-- | src/or/conscache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/conscache.h b/src/or/conscache.h index aef54201f0..a0d74c4e08 100644 --- a/src/or/conscache.h +++ b/src/or/conscache.h @@ -14,6 +14,7 @@ HANDLE_DECL(consensus_cache_entry, consensus_cache_entry_t, ) consensus_cache_t *consensus_cache_open(const char *subdir, int max_entries); void consensus_cache_free(consensus_cache_t *cache); struct sandbox_cfg_elem; +int consensus_cache_may_overallocate(consensus_cache_t *cache); 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); |