ctdb-recoverd: Add a new abstraction ctdb_op_disable()
authorMartin Schwenke <martin@meltin.net>
Sun, 8 Feb 2015 09:50:38 +0000 (20:50 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 7 Apr 2015 05:43:12 +0000 (07:43 +0200)
commit55b246195b282175022ea2ae239ebcd5d4970d3f
treeae1b0d2cb25c3cbf929d70b14915b1ce73bba6f8
parentae9cd037ee96c000b11aaa7d171463b00fe4850c
ctdb-recoverd: Add a new abstraction ctdb_op_disable()

This can be used to disable and re-enable an operation, and do all the
relevant sanity checking.

Most of this is from existing functions
disable_takeover_runs_handler(), clear_takeover_runs_disable() and
reenable_takeover_runs().

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