[Rpm-maint] [Suse patch] Suspend exclusive database lock for scriptlets

Panu Matilainen pmatilai at redhat.com
Fri Jun 8 04:52:17 UTC 2007


On Fri, 25 May 2007, Michael Schroeder wrote:

> On Fri, May 25, 2007 at 02:05:00PM +0300, Panu Matilainen wrote:
>> More locking-related tweaks - is the private locking a leftover from the
>> 4.1-4.2 days of locking horrors (which I can certainly understand ;),
>> never since revisited or decision based on current experiences?
>
> Both, actually. I stayed with a global lock because of
>
> 1) the NPTL lock horrors
> 2) berkeley db lock cleanup problems

Understandable :)

> 3) a fine grained lock makes no sense anyway, as transactions
>   mustn't overlap. That's why newer rpms have the transaction lock.
>   (Which also makes find grained locking obsolete...)

Transactions mustn't overlap, but the finegrained locks allow queries to 
be done while a transaction is in progress. Whether that's enough of a 
justification for all the pain in NPTL locking is another question I 
suppose...

 	- Panu -



More information about the Rpm-maint mailing list