diff options
author | Martin Schwenke <martin@meltin.net> | 2012-07-02 17:26:04 +1000 |
---|---|---|
committer | Martin Schwenke <martin@meltin.net> | 2012-08-08 16:11:11 +1000 |
commit | 7df1da1c91757eab319de2c9e214fa8697ce3da0 (patch) | |
tree | d008025a409ba67f33f15e2e2d4e796dac75f61e | |
parent | d038b9e8ba133c8a41a000c2b2d97e7b757473ac (diff) | |
download | samba-7df1da1c91757eab319de2c9e214fa8697ce3da0.tar.gz samba-7df1da1c91757eab319de2c9e214fa8697ce3da0.tar.xz samba-7df1da1c91757eab319de2c9e214fa8697ce3da0.zip |
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 <martin@meltin.net>
(This used to be ctdb commit cc9d96f4248e45ea99c5f00db1526426ac26fbc2)
-rw-r--r-- | ctdb/server/ctdb_takeover.c | 11 |
1 files 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); |