summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-01-10 13:24:34 +1100
committerKarolin Seeger <kseeger@samba.org>2019-03-04 10:37:54 +0000
commitfd9a02c0bb29778c3b049de4437bec2ce50542ea (patch)
treef33d625399ec3d516b1f3fd700e16c1d14b27287 /ctdb
parentf63f2a0ee39ae7ea849580a7ad455cbcd70a43db (diff)
downloadsamba-fd9a02c0bb29778c3b049de4437bec2ce50542ea.tar.gz
ctdb-recoverd: Make recoverd context available in recovery lock handle
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> (cherry picked from commit c0fb62ed3954fc6e8667480aba92003fc270f257)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/server/ctdb_recoverd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c
index ed055bdcdfe..560e632d028 100644
--- a/ctdb/server/ctdb_recoverd.c
+++ b/ctdb/server/ctdb_recoverd.c
@@ -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,
@@ -955,6 +956,8 @@ static bool ctdb_recovery_lock(struct ctdb_recoverd *rec)
return false;
};
+ s->rec = rec;
+
h = ctdb_cluster_mutex(s,
ctdb,
ctdb->recovery_lock,