ctdb-recoverd: Log a message when releasing the recovery lock
authorMartin Schwenke <martin@meltin.net>
Fri, 20 Jun 2014 00:51:16 +0000 (10:51 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 7 Jul 2014 08:59:56 +0000 (10:59 +0200)
It is a non-trivial event and will make it easier to debug recovery
lock issues.

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

index cfba29dea749362eca14d2e718b05240c31be2fc..1ef8e095e439c29639573841c1200751d3deb057 100644 (file)
@@ -2716,6 +2716,7 @@ static void election_handler(struct ctdb_context *ctdb, uint64_t srvid,
                /* release the recmaster lock */
                if (em->pnn != ctdb->pnn &&
                    ctdb->recovery_lock_fd != -1) {
+                       DEBUG(DEBUG_NOTICE, ("Release the recovery lock\n"));
                        close(ctdb->recovery_lock_fd);
                        ctdb->recovery_lock_fd = -1;
                        unban_all_nodes(ctdb);