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)
commit59489019ad15a5ad6b0f295e742fc9832745a842
treec0f9e44f36089e35c36c308ec7f0f2103f2feb31
parent370022e1ff654db99d0c3ce0c49914c249e57289
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>
client/ctdb_client.c