client: fix a race in the local race condition fix in transaction_start
authorMichael Adam <obnox@samba.org>
Thu, 29 Oct 2009 21:20:38 +0000 (22:20 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Fri, 30 Oct 2009 11:01:16 +0000 (22:01 +1100)
commitb95524c08bf12914120cb6c818ecc1c99738fe37
tree348b15c62698fa0ffec62275c68e39e016d59249
parent9e4902c7d3ad1329c296f4196fcb1396f2a7a6a0
client: fix a race in the local race condition fix in transaction_start

The gap that remained is between checking whether a transaction commit
is in progress and taking the lock. Now we first take the lock and then
check whether a transaction commit is in progress. If so, we release the
lock, wait for one second and retry.

Michael
client/ctdb_client.c