tools/ctdb: Fix racy ipreallocate code
authorAmitay Isaacs <amitay@gmail.com>
Thu, 23 May 2013 03:04:06 +0000 (13:04 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 23 May 2013 06:19:20 +0000 (16:19 +1000)
commit0577ce3c68e4febf49a1ef5093e918db9d5ec636
tree1f6a3596315fa789cf662a11d65d1986d8e1bd2a
parent9d4524d13cbba21bfaf61bd35667984359b379b3
tools/ctdb: Fix racy ipreallocate code

This code tried to find the recovery master and send an ipreallocate
request to that node.  When a node is stopped, this code asked the
stopped node for recovery master.  Stopped node does not have up-to-date
information on the current recovery master.  So ipreallocate requests
were sent to the wrong node and ignored by that node which is not the
recovery master.

Send ipreallocate request to all active nodes.  That way we guarantee
that the current recovery master will see it and respond to it.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Pair-Programmed-With: Martin Schwenke <martin@meltin.net>
tools/ctdb.c