1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-03 01:18:10 +03:00

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 <vagnihotri@ddn.com>
Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Vinit Agnihotri 2023-10-25 23:50:30 -07:00 committed by Volker Lendecke
parent ed67e65057
commit 786adccaa9
2 changed files with 2 additions and 0 deletions

View File

@ -764,6 +764,7 @@ enum ctdb_event {
CTDB_EVENT_RELOAD, /* Deprecated, do not use */ CTDB_EVENT_RELOAD, /* Deprecated, do not use */
CTDB_EVENT_UPDATE_IP, /* IP updating: old interface, new interface, IP address, netmask bits. */ CTDB_EVENT_UPDATE_IP, /* IP updating: old interface, new interface, IP address, netmask bits. */
CTDB_EVENT_IPREALLOCATED, /* when a takeover_run() completes */ CTDB_EVENT_IPREALLOCATED, /* when a takeover_run() completes */
CTDB_EVENT_START_IPREALLOCATE, /* When a takeover_run() starts */
CTDB_EVENT_MAX CTDB_EVENT_MAX
}; };

View File

@ -85,6 +85,7 @@ static struct {
{ CTDB_EVENT_SHUTDOWN, "shutdown" }, { CTDB_EVENT_SHUTDOWN, "shutdown" },
{ CTDB_EVENT_UPDATE_IP, "updateip" }, { CTDB_EVENT_UPDATE_IP, "updateip" },
{ CTDB_EVENT_IPREALLOCATED, "ipreallocated" }, { CTDB_EVENT_IPREALLOCATED, "ipreallocated" },
{ CTDB_EVENT_START_IPREALLOCATE, "startipreallocate" },
{ CTDB_EVENT_MAX, "all" }, { CTDB_EVENT_MAX, "all" },
{ -1, NULL }, { -1, NULL },
}; };