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)
commit7290798a4144145d0f408551823d392129095e87
tree3275c850a71d6c90925057978a655be865d509ec
parent15115becefcd3cbffe242ca4283460e8df31e0aa
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>
(This used to be ctdb commit f0942fa01cd422133fc9398f56b4855397d7bc86)
ctdb/include/ctdb_private.h
ctdb/server/ctdb_recoverd.c
ctdb/server/ctdb_takeover.c