ctdb: add/implement CTDB_CONTROL_TCP_CLIENT_DISCONNECTED
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Nov 2023 15:31:53 +0000 (16:31 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 15 Dec 2023 11:06:34 +0000 (11:06 +0000)
commitc6602b686b4e50d93272667ef86d3904181fb1ab
treed6483f3846023a319cc81319572db954563109ac
parent8395fd369d3c9d216817e922423727748581f133
ctdb: add/implement CTDB_CONTROL_TCP_CLIENT_DISCONNECTED

With multichannel a ctdb connection from smbd may hold multiple
tcp connections, which can be disconnected before the smbd
process terminates the whole ctdb connection, so we a
way to remove undo 'CTDB_CONTROL_TCP_CLIENT' again.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15523

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/include/ctdb_private.h
ctdb/protocol/protocol.h
ctdb/protocol/protocol_control.c
ctdb/protocol/protocol_debug.c
ctdb/server/ctdb_control.c
ctdb/server/ctdb_takeover.c