ctdb-protocol: Add new event startipreallocate
authorVinit Agnihotri <vagnihotri@ddn.com>
Thu, 26 Oct 2023 06:50:30 +0000 (23:50 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 6 Mar 2024 06:05:38 +0000 (06:05 +0000)
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 <vagnihotri@ddn.com>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/protocol/protocol.h
ctdb/protocol/protocol_util.c

index 009a0df06afd2350a87066f01fdc76db70eb1000..b22e3a44a17769cb40519239b58803ca94f54179 100644 (file)
@@ -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
 };
 
index 87ecc87ac361c4c53935c3437154281502d8c747..01756cfa7596f9e5068ef052b45267da818692a7 100644 (file)
@@ -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 },
 };