diff options
author | Martin Schwenke <martin@meltin.net> | 2019-08-19 21:47:03 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-08-20 07:15:41 +0000 |
commit | a42bcaabb63722411bee52b80cbfc795593defbc (patch) | |
tree | e5d981c9e7970954c6b85b66ec23b7b3f9593520 /ctdb/include | |
parent | f8e79be2c155f26abfa7e5e3fddd2f453c2f943a (diff) | |
download | samba-a42bcaabb63722411bee52b80cbfc795593defbc.tar.gz |
ctdb-daemon: Factor out new function ctdb_node_become_inactive()
This is a superset of ctdb_local_node_got_banned() so will replace
that function, and will also be used in the NODE_STOP control.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14087
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/include')
-rw-r--r-- | ctdb/include/ctdb_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/include/ctdb_private.h b/ctdb/include/ctdb_private.h index 1e9619faddf..d9d13fad358 100644 --- a/ctdb/include/ctdb_private.h +++ b/ctdb/include/ctdb_private.h @@ -819,6 +819,8 @@ int32_t ctdb_control_recd_ping(struct ctdb_context *ctdb); int32_t ctdb_control_set_recmaster(struct ctdb_context *ctdb, uint32_t opcode, TDB_DATA indata); +void ctdb_node_become_inactive(struct ctdb_context *ctdb); + int32_t ctdb_control_stop_node(struct ctdb_context *ctdb); int32_t ctdb_control_continue_node(struct ctdb_context *ctdb); |