ctdb-tcp: move free of inbound queue to TCP restart
authorNoel Power <noel.power@suse.com>
Sat, 29 Feb 2020 15:49:28 +0000 (15:49 +0000)
committerKarolin Seeger <kseeger@samba.org>
Thu, 19 Mar 2020 10:56:08 +0000 (10:56 +0000)
commit5a51d36317df92e589741c557ed61c64a43413bf
tree46416c331a732376c4ddc7616e9f905e768f3a62
parent6f6357c359cb2a8017e2138a03b49da305e8f992
ctdb-tcp: move free of inbound queue to TCP restart

Since commit 77deaadca8e8dbc3c92ea16893099c72f6dc874e, a nodeA which
had previously accepted a connection from nodeB (where nodeB dies
e.g. as as result of fencing) when nodeB attempts to connect again
after restarting is always rejected with

 ctdb_listen_event: Incoming queue active, rejecting connection from w.x.y.z

messages.

Consolidate dead node handling in the TCP restart handling.

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
(cherry picked from commit 0ff1b78fc2f0491f9e11131d0040bdaba8873770)
ctdb/tcp/tcp_init.c
ctdb/tcp/tcp_io.c