[Freeipa-devel] [PATCH] 294 sleep before doing a task
Pavel Zuna
pzuna at redhat.com
Thu Oct 15 13:28:05 UTC 2009
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
More information about the Freeipa-devel
mailing list