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

Michael Schroeder mls at suse.de
Fri May 25 12:33:55 UTC 2007


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
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...)

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}



More information about the Rpm-maint mailing list