tools/ctdb: Factor, simplify and improve robustness of ipreallocate code
commitf72f4c362b7a3b5b9731d2e90ee3b8f311bd9f31
authorMartin Schwenke <martin@meltin.net>
Fri, 9 Aug 2013 05:41:37 +0000 (9 15:41 +1000)
committerMartin Schwenke <martin@meltin.net>
Wed, 21 Aug 2013 04:02:36 +0000 (21 14:02 +1000)
tree738e8d38fa81fa53f3aefa1c6a619af43978d167
parentdb121b4c8faa0ffa00d8b2e83a3944d2839f2ec5
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>
(This used to be ctdb commit 4bf0b1c9d21986eecb7682f935bd6154c65533cc)
ctdb/tools/ctdb.c