summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-02-08 14:02:51 +0200
committerTimo Teräs <timo.teras@iki.fi>2012-02-08 14:02:51 +0200
commit3320fba50d8be0f12d4d01f7c12824a4dd504ac9 (patch)
treee3e91859e37179fe061c743788fc2a533bbfcc97 /src
parent4aa80564f995892acdc40af8e030f7b9704f4924 (diff)
downloadapk-tools-3320fba50d8be0f12d4d01f7c12824a4dd504ac9.tar.gz
apk-tools-3320fba50d8be0f12d4d01f7c12824a4dd504ac9.tar.bz2
apk-tools-3320fba50d8be0f12d4d01f7c12824a4dd504ac9.tar.xz
apk-tools-3320fba50d8be0f12d4d01f7c12824a4dd504ac9.zip
db: increase hash sizes
Diffstat (limited to 'src')
-rw-r--r--src/database.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/database.c b/src/database.c
index 66e2926..d546d7e 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1151,10 +1151,10 @@ int apk_db_open(struct apk_database *db, struct apk_db_options *dbopts)
goto ret_r;
}
- apk_hash_init(&db->available.names, &pkg_name_hash_ops, 1000);
- apk_hash_init(&db->available.packages, &pkg_info_hash_ops, 4000);
- apk_hash_init(&db->installed.dirs, &dir_hash_ops, 2000);
- apk_hash_init(&db->installed.files, &file_hash_ops, 10000);
+ apk_hash_init(&db->available.names, &pkg_name_hash_ops, 4000);
+ apk_hash_init(&db->available.packages, &pkg_info_hash_ops, 10000);
+ apk_hash_init(&db->installed.dirs, &dir_hash_ops, 10000);
+ apk_hash_init(&db->installed.files, &file_hash_ops, 20000);
list_init(&db->installed.packages);
list_init(&db->installed.triggers);
apk_dependency_array_init(&db->world);