summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2014-01-29 15:54:35 +1100
committerMartin Schwenke <martins@samba.org>2014-02-27 11:49:39 +0100
commit026996550d726836091ff5ebd1ebf925bf237bb0 (patch)
treebd91315c46245edc7c7592e1645e057d65774971
parent0723fedcedd4a97870f7b1224945f1587363c9bf (diff)
downloadsamba-026996550d726836091ff5ebd1ebf925bf237bb0.tar.gz
samba-026996550d726836091ff5ebd1ebf925bf237bb0.tar.xz
samba-026996550d726836091ff5ebd1ebf925bf237bb0.zip
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>
-rw-r--r--ctdb/server/ctdb_takeover.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c
index f023173258..6b60fea7bf 100644
--- a/ctdb/server/ctdb_takeover.c
+++ b/ctdb/server/ctdb_takeover.c
@@ -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;
}
}