summaryrefslogtreecommitdiffstats
path: root/tests/shared_mmap.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2014-03-13 16:53:15 +1100
committerAmitay Isaacs <amitay@samba.org>2014-03-23 04:20:14 +0100
commit4f79fa6c7c843502fcdaa2dead534ea3719b9f69 (patch)
tree20ab34453b059e4b45c9bd24aa488b05a856ca3f /tests/shared_mmap.c
parent441e0998370bfd7b0de5dd9aed7e2abbcf64cf73 (diff)
downloadsamba-4f79fa6c7c843502fcdaa2dead534ea3719b9f69.tar.gz
samba-4f79fa6c7c843502fcdaa2dead534ea3719b9f69.tar.xz
samba-4f79fa6c7c843502fcdaa2dead534ea3719b9f69.zip
ctdb-daemon: Fix tickle updates to recently started nodes
Commit 0723fedcedd4a97870f7b1224945f1587363c9bf added a cheap implemention of ctdb_control_startup() that simply flags the recipient node as needing to send updates for each IP when the tickle update loop next fires. Commit 026996550d726836091ff5ebd1ebf925bf237bb0 ensures that a node only sends tickle updates once being flagged to do so. CTDB_CONTROL_STARTUP is broadcast to all nodes, so this is a good start. However, the tickle updates are only broadcast to connected nodes. A recently started node may not yet be considered to be connected because the keepalive monitoring loop may not yet have marked the node as connected. This means that the tickle update loop races with the keepalive monitoring loop. If the tickle update loop wins then updates will not be sent to the recently started node. The simplest improvement is to stop the tickle update from depending on whether a node is connected or not. So instead of broadcasting tickle updates to connected nodes, they are broadcast to all nodes. Since no reply is expected, this should work just fine. While looking at this code, ctdb_ctrl_set_tcp_tickles() is named like a client function. It isn't a client function. Also, 2 of the arguments are ignored. So rename this function to ctdb_send_set_tcp_tickles_for_ip() and remove the ignored arguments. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'tests/shared_mmap.c')
0 files changed, 0 insertions, 0 deletions