From f9ed52c0c7a29aa64bc44f94f7b102775ce4be44 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 20 Nov 2008 11:47:52 +0200 Subject: [PATCH] fpCacheCreate() already doubles the size-hint, dont do it twice --- lib/transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction.c b/lib/transaction.c index 347ec17..898027d 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -1012,7 +1012,7 @@ int rpmtsRun(rpmts ts, rpmps okProbs, rpmprobFilterFlags ignoreSet) ts->ht = rpmFpHashCreate(totalFileCount * 2 + 1, fpHashFunction, fpEqual, NULL, NULL); - fpc = fpCacheCreate(totalFileCount * 2 + 10001); + fpc = fpCacheCreate(totalFileCount + 10001); /* =============================================== * Add fingerprint for each file not skipped. -- 2.7.4