From 786adccaa934bd1980fd337ddd374f9c6e7421be Mon Sep 17 00:00:00 2001 From: Vinit Agnihotri Date: Wed, 25 Oct 2023 23:50:30 -0700 Subject: [PATCH] ctdb-protocol: Add new event startipreallocate A new event is needed for NFS lock reclaim to ensure all nodes are in grace before any locks are released. This event must take place before releaseip. Signed-off-by: Vinit Agnihotri Reviewed-by: Martin Schwenke Reviewed-by: Volker Lendecke --- ctdb/protocol/protocol.h | 1 + ctdb/protocol/protocol_util.c | 1 + 2 files changed, 2 insertions(+) diff --git a/ctdb/protocol/protocol.h b/ctdb/protocol/protocol.h index 009a0df06af..b22e3a44a17 100644 --- a/ctdb/protocol/protocol.h +++ b/ctdb/protocol/protocol.h @@ -764,6 +764,7 @@ enum ctdb_event { CTDB_EVENT_RELOAD, /* Deprecated, do not use */ CTDB_EVENT_UPDATE_IP, /* IP updating: old interface, new interface, IP address, netmask bits. */ CTDB_EVENT_IPREALLOCATED, /* when a takeover_run() completes */ + CTDB_EVENT_START_IPREALLOCATE, /* When a takeover_run() starts */ CTDB_EVENT_MAX }; diff --git a/ctdb/protocol/protocol_util.c b/ctdb/protocol/protocol_util.c index 87ecc87ac36..01756cfa759 100644 --- a/ctdb/protocol/protocol_util.c +++ b/ctdb/protocol/protocol_util.c @@ -85,6 +85,7 @@ static struct { { CTDB_EVENT_SHUTDOWN, "shutdown" }, { CTDB_EVENT_UPDATE_IP, "updateip" }, { CTDB_EVENT_IPREALLOCATED, "ipreallocated" }, + { CTDB_EVENT_START_IPREALLOCATE, "startipreallocate" }, { CTDB_EVENT_MAX, "all" }, { -1, NULL }, };