ctdb-tools: "reloadnodes" should only run against current node
authorMartin Schwenke <martin@meltin.net>
Wed, 28 Jan 2015 00:54:39 +0000 (11:54 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 23 Mar 2015 11:23:12 +0000 (12:23 +0100)
commit8e12e112f8fe14716f6a1a0f07783c7df03db3b9
tree26196a0cbd51451cf5b33202063de61a7486f6ac
parent77e879253b2e2a7b5ec630daad3a7709abd67953
ctdb-tools: "reloadnodes" should only run against current node

It should not be possible to specify "-n <othernode>", unless
<othernode> is the current node.  To support this, add new function
assert_current_node_only().

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