]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-recoverd: No need to reset reclock handler
authorMartin Schwenke <martin@meltin.net>
Mon, 30 May 2016 02:18:50 +0000 (12:18 +1000)
committerMartin Schwenke <martins@samba.org>
Tue, 7 Jun 2016 22:51:28 +0000 (00:51 +0200)
It won't be called more than once by the cluster mutex code.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_recoverd.c

index 538d4301adbf65cf39fa6cd72dfb2fe14128faa7..91428e2a46b7070d4ef3e328b6d31521a025c403 100644 (file)
@@ -1601,9 +1601,6 @@ static bool ctdb_recovery_lock(struct ctdb_context *ctdb)
                tevent_loop_once(ctdb->ev);
        }
 
-       /* Ensure no attempts to access to s after function return */
-       ctdb_cluster_mutex_set_handler(h, hold_reclock_handler, NULL);
-
        return s.locked;
 }