From ccbb618bfc2bb2a74674b9e49c5637abb34515d9 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 16 Oct 2008 12:13:13 +0200 Subject: Use better cache sizes --- lib/transaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/transaction.c b/lib/transaction.c index a9c4a9187..46b949d5f 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -1061,9 +1061,9 @@ int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) (void) rpmtsSetChrootDone(ts, 1); } - ts->ht = rpmFpHashCreate(totalFileCount * 2, fpHashFunction, fpEqual, + ts->ht = rpmFpHashCreate(totalFileCount * 2 + 1, fpHashFunction, fpEqual, NULL, NULL); - fpc = fpCacheCreate(totalFileCount * 2); + fpc = fpCacheCreate(totalFileCount * 2 + 10001); /* =============================================== * Add fingerprint for each file not skipped. -- cgit v1.2.3