If the node has flag NODE_FLAGS_PERMANENTLY_DISABLED, then it is
still working. Only avoid connections if node has any of the flags
in NODE_FLAGS_INACTIVE.
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jun 23 23:38:44 CEST 2016 on sn-devel-144
int32_t cstatus=-1;
TDB_DATA outdata;
struct ctdb_node_map_old *m;
- uint32_t failure_flags;
bool ok = false;
uint32_t i;
int ret;
goto fail;
}
- failure_flags = NODE_FLAGS_BANNED | NODE_FLAGS_DISCONNECTED
- | NODE_FLAGS_PERMANENTLY_DISABLED | NODE_FLAGS_STOPPED;
-
- if ((m->nodes[i].flags & failure_flags) != 0) {
+ if ((m->nodes[i].flags & NODE_FLAGS_INACTIVE) != 0) {
DEBUG(2, ("Node has status %x, not active\n",
(int)m->nodes[i].flags));
goto fail;