diff options
author | Florian Festi <ffesti@redhat.com> | 2008-10-16 12:13:13 +0200 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2008-10-24 10:34:26 +0200 |
commit | ccbb618bfc2bb2a74674b9e49c5637abb34515d9 (patch) | |
tree | 3d2fb2023655ab72e584fe3869222670be1ec104 /lib | |
parent | 48554042f434fd75452e752f1156a652ffe71c8b (diff) | |
download | rpm-ccbb618bfc2bb2a74674b9e49c5637abb34515d9.tar.gz rpm-ccbb618bfc2bb2a74674b9e49c5637abb34515d9.tar.bz2 rpm-ccbb618bfc2bb2a74674b9e49c5637abb34515d9.zip |
Use better cache sizes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. |