Make transaction lock path per-transaction
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 22 Apr 2010 09:23:24 +0000 (12:23 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 22 Apr 2010 09:23:24 +0000 (12:23 +0300)
commite7b0d96900fb16a707776f95052f924fc4241c17
treee38cb43a605d40939b91ba8726bbd661f7d075ea
parent1f625e69e9609bedde9b071d87849ed518b43d22
Make transaction lock path per-transaction
- Although it doesn't really happen in practise, rpm's API permits several
  transactions with possibly differing roots within process lifetime.
  Previously the lock path was calculated just once globally so we could
  easily be locking in a completely wrong place (eg locking in a previously
  accessed chroot when system rpmdb should be transaction-locked)
lib/rpmts.c
lib/rpmts_internal.h