summaryrefslogtreecommitdiff
path: root/lib/rpmts_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-04-22 12:23:24 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-04-22 12:23:24 +0300
commite7b0d96900fb16a707776f95052f924fc4241c17 (patch)
treee38cb43a605d40939b91ba8726bbd661f7d075ea /lib/rpmts_internal.h
parent1f625e69e9609bedde9b071d87849ed518b43d22 (diff)
downloadrpm-e7b0d96900fb16a707776f95052f924fc4241c17.tar.gz
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)
Diffstat (limited to 'lib/rpmts_internal.h')
-rw-r--r--lib/rpmts_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h
index c42e2a131..551cdd76b 100644
--- a/lib/rpmts_internal.h
+++ b/lib/rpmts_internal.h
@@ -52,6 +52,7 @@ struct rpmts_s {
int chrootDone; /*!< Has chroot(2) been been done? */
char * rootDir; /*!< Path to top of install tree. */
char * currDir; /*!< Current working directory. */
+ char * lockPath; /*!< Transaction lock path */
FD_t scriptFd; /*!< Scriptlet stdout/stderr. */
rpm_tid_t tid; /*!< Transaction id. */