summaryrefslogtreecommitdiff
path: root/src/test/test_conscache.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-26 10:13:25 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-27 21:40:13 -0400
commit920475f293a8a69dd846cd06249b4b699857a3d4 (patch)
tree724e3cab92a42745f36af074a839e33183557a47 /src/test/test_conscache.c
parent466e9140888f0a6a504dc642a0426bd2352f0490 (diff)
downloadtor-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/test/test_conscache.c')
-rw-r--r--src/test/test_conscache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_conscache.c b/src/test/test_conscache.c
index c316411a79..aee1ba8a06 100644
--- a/src/test/test_conscache.c
+++ b/src/test/test_conscache.c
@@ -203,7 +203,7 @@ test_conscache_cleanup(void *arg)
tt_assert(e_tmp == NULL); // not found because pending deletion.
/* Delete the pending-deletion items. */
- consensus_cache_delete_pending(cache);
+ consensus_cache_delete_pending(cache, 0);
{
smartlist_t *entries = smartlist_new();
consensus_cache_find_all(entries, cache, NULL, NULL);