Move the entire fingerprint cache population into fprint.c
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 13 Sep 2012 19:19:40 +0000 (22:19 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 14 Sep 2012 10:32:58 +0000 (13:32 +0300)
commitd3de5120b7930d1d2abf99b7c4a315b4053d702d
tree40421de96d9e305b66184ef7868bd5311508b70f
parent33b900fc03486e5cf3fd22373cf3187fbdffbea0
Move the entire fingerprint cache population into fprint.c

- Rename addFingerprints() to fpCachePopulate() and move into fprint.c.
  This doesn't really belong here as it requires fprint becoming aware
  of transactions and all, but at least these are all controlled API
  accesses unlike where in transaction.c this was messing with somebody
  elses data structures directly.
- Move the by-fingerprint creation to fpCachePopulate() so it gets
  lazily done as needed and copy the original hash-size heuristics
  back here.
lib/fprint.c
lib/fprint.h
lib/transaction.c