ctdb: let "moveip" also use disable_takeover_runs()
authorStefan Metzmacher <metze@samba.org>
Thu, 23 Nov 2023 12:57:28 +0000 (13:57 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 4 Jan 2024 11:39:36 +0000 (11:39 +0000)
commitcad1969b171766a5264973e7bfb5f9f7295421b6
tree60e351bee7c01772ec5c68d063b20430f38f03ab
parentb1d0d5d51422f377c2e989ea6dacb2aa5794082b
ctdb: let "moveip" also use disable_takeover_runs()

That makes the behavior more consistent compared to a takeover run
started from the within ctdbd.

The behavior is the same but ctdb_message_disable_ip_check() used
a legacy code path and the next commits will also touch some
of the moveip logic...

The logic and comments are copied from control_reloadips().

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/tools/ctdb.c