]> git.ipfire.org Git - thirdparty/samba.git/commit
ctdb-daemon: Send STARTUP control after startup event
authorAmitay Isaacs <amitay@gmail.com>
Mon, 20 Nov 2017 04:27:52 +0000 (15:27 +1100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Dec 2017 09:45:12 +0000 (10:45 +0100)
commit82f6111ad58b5fdc085d9fd98272040665a3a25f
treef4ae4182ab7c240757507dd3f57d9ea80b065395
parent0d42cfcd51c8c82f433255963d4ec5eb594d710e
ctdb-daemon: Send STARTUP control after startup event

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

STARTUP control is primarily used to synchronise tcp tickles from running
nodes to a node which has just started up.  Earlier STARTUP control was
sent (using BROADCAST_ALL) after setup event.  Once the other nodes in
the cluster connected to this node, the queued up messages would be sent
and the tcp tickles would get synchronised.

Recent fix to drop messages to disconnected or not-yet-connected nodes,
the STARTUP control was never sent to the remote nodes and the tcp
tickles did not get synchronised.

To fix this problem send the STARTUP control (using BROADCAST_CONNECTED)
after startup event.  By this time all the running nodes in the cluster
are connected.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Thu Nov 30 15:29:48 CET 2017 on sn-devel-144

(cherry picked from commit d7a5cd589b7b16d625dbc64dac21a1384519e32b)
ctdb/server/ctdb_daemon.c
ctdb/server/ctdb_monitor.c