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 14:29:10 +0000 (14:29 +0000)
commitf769415799332387ea7b2daa73d47f2f18fbe386
tree6016c2f65ac62f8ea3ef9c03bba5fdd6f1f868ad
parent0de804ac5d68af6b5ff7cf8fe227e4608d96ff55
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