From 87daf7b5578799b4bbdd860982149b6d7fb018c9 Mon Sep 17 00:00:00 2001 From: Arne Goedeke <el@laramies.com> Date: Tue, 6 Sep 2011 11:49:49 +0200 Subject: [PATCH] Revert "mapping: use minimum hashsize of 32 (again)" This reverts commit 3e97b25ecdc57b574835d70bd3d1442496420b4a. --- src/mapping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mapping.c b/src/mapping.c index def183aa48..168d835bc8 100644 --- a/src/mapping.c +++ b/src/mapping.c @@ -181,8 +181,7 @@ static void init_mapping(struct mapping *m, #endif if(size) { - hashsize = size / AVG_LINK_LENGTH + 1; - hashsize = (hashsize <= 32) ? 32 : find_next_power(hashsize); + hashsize=find_next_power(size / AVG_LINK_LENGTH + 1); e=MAPPING_DATA_SIZE(hashsize, size); -- GitLab