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, 20 Jun 2013 02:56:29 +0000 (12:56 +1000)
commitc7391f66b34406baa7f1677309492b792d0a3122
treefe784ea99204c15817f2ad9a3b8cc214fdbb8e67
parent8137e4a0d8f70f6aa55e9c4ca1ac676aafd12f06
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>

(cherry picked from commit 0577ce3c68e4febf49a1ef5093e918db9d5ec636)

Conflicts:
tools/ctdb.c
tools/ctdb.c