recoverd: Clean up log messages in remote IP verification
authorMartin Schwenke <martin@meltin.net>
Sun, 30 Jun 2013 08:45:46 +0000 (18:45 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 5 Jul 2013 05:52:33 +0000 (15:52 +1000)
commitf0942fa01cd422133fc9398f56b4855397d7bc86
tree8183516e7f0961d2a1426430b15b1c5c9707ec39
parent298c4d2c3b4ea3d900c91f5a0a5aca2952a13d61
recoverd: Clean up log messages in remote IP verification

The log messages in verify_remote_ip_allocation() are confusing
because they don't include the PNN of the problem node, because it is
not known in this function.

Add the PNN of the node being verified as a function argument and then
shuffle the log messages around to make them clearer.

Also fold 3 nested if statements into just one.

Signed-off-by: Martin Schwenke <martin@meltin.net>
include/ctdb_private.h
server/ctdb_recoverd.c
server/ctdb_takeover.c