ctdb-recoverd: Make recoverd context available in recovery lock handle
authorMartin Schwenke <martin@meltin.net>
Thu, 10 Jan 2019 02:24:34 +0000 (13:24 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 25 Feb 2019 01:12:16 +0000 (02:12 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13800

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

index 473e6cb..c3beac7 100644 (file)
@@ -888,6 +888,7 @@ struct ctdb_recovery_lock_handle {
        bool locked;
        double latency;
        struct ctdb_cluster_mutex_handle *h;
+       struct ctdb_recoverd *rec;
 };
 
 static void take_reclock_handler(char status,
@@ -954,6 +955,8 @@ static bool ctdb_recovery_lock(struct ctdb_recoverd *rec)
                return false;
        };
 
+       s->rec = rec;
+
        h = ctdb_cluster_mutex(s,
                               ctdb,
                               ctdb->recovery_lock,