tools/ctdb: Factor, simplify and improve robustness of ipreallocate code
authorMartin Schwenke <martin@meltin.net>
Fri, 9 Aug 2013 05:41:37 +0000 (15:41 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 21 Aug 2013 04:02:36 +0000 (14:02 +1000)
commit4bf0b1c9d21986eecb7682f935bd6154c65533cc
tree6de0f02180e35a52fddf755ba61f9a2e2cc01ac5
parentd8eb2e7fdd7645719370dad4f2faa5c3fffa8249
tools/ctdb: Factor, simplify and improve robustness of ipreallocate code

Having other functions call control_ipreallocate() suggests that the
it might look at the argv/argv arguments that are passed.  This is not
the case.  Change the callers so they call the new ipreallocate()
function instead.

Broadcast CTDB_SRVID_TAKEOVER_RUN to all connected nodes.  Inactive
nodes will ignore it.  This is safe since we only want 1 reply.  If we
didn't get a response, we don't actually care if there's no active
recovery master - just fire, wait, retry, ...

Ignore some failures on the basis that they might be transient, so it
is probably worth retrying.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tools/ctdb.c