[Freeipa-devel] [PATCH] 294 sleep before doing a task

Rob Crittenden rcritten at redhat.com
Fri Oct 16 18:56:57 UTC 2009


Pavel Zuna wrote:
> Rob Crittenden wrote:
>> One of the last steps of an install is to run through any updates. 
>> This change adds a sleep() prior to calling tasks to ensure postop 
>> writes are done
>>
>> We were seeing a rare deadlock of DS when creating the memberOf task 
>> because one thread was adding memberOf in a postop while another was 
>> trying to create an index and this was causing a PRLock deadlock.
>>
>> rob
>>
> sleep might not be the best synchronization mechanism out there, but I 
> think that in this case it is pretty much the only one available and it 
> gets the job done, so ack.
> 
> Pavel

pushed to master
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20091016/598b19c4/attachment.bin>


More information about the Freeipa-devel mailing list