client: Make g_lock_lock() wait till lock is obtained
authorAmitay Isaacs <amitay@gmail.com>
Thu, 7 Nov 2013 04:54:20 +0000 (15:54 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 7 Nov 2013 05:08:17 +0000 (16:08 +1100)
commit537d4abc113883e0d361a1a907d09e771b7d7987
treecf5fb15c137ca8181b0a1567b3cfcb4caef0de62
parentab5908777591b9df819439ad213f0a36fc5afcd3
client: Make g_lock_lock() wait till lock is obtained

This makes the behaviour of g_lock_lock() similar to that implemented in
Samba.  Now ctdb_transaction_start() will return NULL only when there are
failures and not when another transaction is active.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 59489019ad15a5ad6b0f295e742fc9832745a842)
ctdb/client/ctdb_client.c