From 7df1da1c91757eab319de2c9e214fa8697ce3da0 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 2 Jul 2012 17:26:04 +1000 Subject: recoverd: Update a log message that has bit-rotted This message used to be correct because the ipreallocated event only handled updating the NAT gateway. However, that has changed so the message needs to be updated. Signed-off-by: Martin Schwenke (This used to be ctdb commit cc9d96f4248e45ea99c5f00db1526426ac26fbc2) --- ctdb/server/ctdb_takeover.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index 538f776d52..40bf4bcdc4 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -2244,8 +2244,13 @@ int ctdb_takeover_run(struct ctdb_context *ctdb, struct ctdb_node_map *nodemap) } ipreallocated: - /* tell all nodes to update natwg */ - /* send the flags update natgw on all connected nodes */ + /* + * Tell all nodes to run eventscripts to process the + * "ipreallocated" event. This can do a lot of things, + * including restarting services to reconfigure them if public + * IPs have moved. Once upon a time this event only used to + * update natwg. + */ data.dptr = discard_const("ipreallocated"); data.dsize = strlen((char *)data.dptr) + 1; nodes = list_of_connected_nodes(ctdb, nodemap, tmp_ctx, true); @@ -2254,7 +2259,7 @@ ipreallocated: false, data, NULL, NULL, NULL) != 0) { - DEBUG(DEBUG_ERR, (__location__ " ctdb_control to updatenatgw failed\n")); + DEBUG(DEBUG_ERR, (__location__ " failed to send control to run eventscripts with \"ipreallocated\"\n")); } talloc_free(tmp_ctx); -- cgit