diff options
author | Amitay Isaacs <amitay@gmail.com> | 2013-06-28 14:04:18 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-07-02 12:59:08 +1000 |
commit | c6914e3891b69fafaa59c54eeba2f4815588af01 (patch) | |
tree | 9a4a7e5ac2532863284a03c7af2ff518b8d7e151 /ctdb/server/ctdb_monitor.c | |
parent | cf1d4bfde32353432866d3ebce09da8e403a7192 (diff) | |
download | samba-c6914e3891b69fafaa59c54eeba2f4815588af01.tar.gz samba-c6914e3891b69fafaa59c54eeba2f4815588af01.tar.xz samba-c6914e3891b69fafaa59c54eeba2f4815588af01.zip |
banning: Make ctdb_local_node_got_banned() a void function
When this function is called, we are already committed to banning
and there is no point in failing this function. In case, freezing of
databases fails, it will be fixed from recovery daemon.
(This used to be ctdb commit bb178338658b4ae32382a1f62f7c21cee1d4878f)
Diffstat (limited to 'ctdb/server/ctdb_monitor.c')
-rw-r--r-- | ctdb/server/ctdb_monitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/server/ctdb_monitor.c b/ctdb/server/ctdb_monitor.c index 106a44f7d2..8d28fff14f 100644 --- a/ctdb/server/ctdb_monitor.c +++ b/ctdb/server/ctdb_monitor.c @@ -491,7 +491,7 @@ int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata) /* if we have become banned, we should go into recovery mode */ if ((node->flags & NODE_FLAGS_BANNED) && !(c->old_flags & NODE_FLAGS_BANNED) && (node->pnn == ctdb->pnn)) { - return ctdb_local_node_got_banned(ctdb); + ctdb_local_node_got_banned(ctdb); } return 0; |