From 083f5e31efd082aa738f374680756ba57f25a3db Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 14 Jan 2016 03:20:17 +0100 Subject: [PATCH] hashindex: fix upper limit use num_buckets (== fully use what we currently have allocated) --- borg/_hashindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/_hashindex.c b/borg/_hashindex.c index 6dde62fe3..247454d26 100644 --- a/borg/_hashindex.c +++ b/borg/_hashindex.c @@ -155,7 +155,7 @@ int get_lower_limit(int num_buckets){ int get_upper_limit(int num_buckets){ int max_buckets = hash_sizes[NELEMS(hash_sizes) - 1]; if (num_buckets >= max_buckets) - return max_buckets; + return num_buckets; return (int)(num_buckets * HASH_MAX_LOAD); }