mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-daemon: After updating tickles on other nodes, set update flag to false
tcp_update_flag is set to true whenever tickles are added or deleted. This flag is used to determine whether or not to send tickles list to other nodes. Once tickles list is sent to other nodes successfully, set tcp_update_flag to false, so ctdbd does not keep sending same tickles list every TickleUpdateInterval (20 seconds). Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
0723fedced
commit
026996550d
@ -4011,6 +4011,8 @@ static void ctdb_update_tcp_tickles(struct event_context *ev,
|
||||
if (ret != 0) {
|
||||
DEBUG(DEBUG_ERR,("Failed to send the tickle update for public address %s\n",
|
||||
ctdb_addr_to_str(&vnn->public_address)));
|
||||
} else {
|
||||
vnn->tcp_update_needed = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user