Why does yum always need a global lock?

Christoph Höger choeger at cs.tu-berlin.de
Wed Oct 22 15:47:27 UTC 2008


ok, that sounds like some motivation for me do to it. 

I've had a quick look over the source code and could not yet figure out,
which functions really modify stuff in /var/cache/yum, but at a first
glance it seem to be a few. You do not have a list of them flying
around, don't you? ;)

My approach would be to create a decorator (called @needslock or
something) and add it to every function that needs it. That decorator
would look like the one in the attachment.
Is that the yum-way fo doing it?

regards

Christoph


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 487 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20081022/47df4521/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20081022/47df4521/attachment.sig>


More information about the fedora-devel-list mailing list