ctdb-client: Release g_lock lock before retrying
authorAmitay Isaacs <amitay@gmail.com>
Thu, 16 Jun 2016 06:17:39 +0000 (16:17 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 5 Jul 2016 08:53:14 +0000 (10:53 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/client/client_db.c

index b7c0e47..252e867 100644 (file)
@@ -1351,6 +1351,7 @@ static void ctdb_g_lock_lock_checked(struct tevent_req *subreq)
 
        if (value == 0) {
                /* server process exists, need to retry */
+               TALLOC_FREE(state->h);
                subreq = tevent_wakeup_send(state, state->ev,
                                            tevent_timeval_current_ofs(0,1000));
                if (tevent_req_nomem(subreq, req)) {