ctdb-recoverd: Remote IP validation can't cause a takeover run
authorMartin Schwenke <martin@meltin.net>
Wed, 28 Oct 2015 09:33:29 +0000 (20:33 +1100)
committerAmitay Isaacs <amitay@samba.org>
Thu, 12 Nov 2015 05:24:15 +0000 (06:24 +0100)
commitc37e3c05b0e522da27c3e1d16533ebdd382d7ea3
tree946ed65f9740fce8e1ee3e3674f0cd167529471b
parent8b7b153cf640c311d46f5e0c3297aaf8fa4149d6
ctdb-recoverd: Remote IP validation can't cause a takeover run

Remote IP validation is only called when a takeover run is about to
happen anyway, so don't bother flagging one.  Given that a takeover
run isn't being triggered, also drop the test that checks if takeover
runs are disabled.  These are the only uses of the rec argument, so
drop it.

One possible further simplification would be to remove this function
because it doesn't accomplish anything.  However, it is worth leaving
it as a reminder that remote IP validation should be done properly at
some time in the future.

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