ctdb: add/implement CTDB_CONTROL_TCP_CLIENT_DISCONNECTED
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Nov 2023 15:31:53 +0000 (16:31 +0100)
committerJule Anger <janger@samba.org>
Sat, 16 Dec 2023 15:07:14 +0000 (15:07 +0000)
commitb6906f37c667677dcac9bcfd6cc182869cb6f569
treeb70ad790f0763b41a63e45fce366684befa36500
parent24bd10ebfc12a150bee214f830c328d61c42e591
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>
(cherry picked from commit c6602b686b4e50d93272667ef86d3904181fb1ab)
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