mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
make sure reconnected nodes start off as unhealthy so they don't get a public IP
(This used to be ctdb commit c733ec6760cae01ce277f491caf1355e46de5cf7)
This commit is contained in:
parent
50770008df
commit
011a205b86
@ -335,7 +335,7 @@ void ctdb_node_dead(struct ctdb_node *node)
|
||||
return;
|
||||
}
|
||||
node->ctdb->num_connected--;
|
||||
node->flags |= NODE_FLAGS_DISCONNECTED;
|
||||
node->flags |= NODE_FLAGS_DISCONNECTED | NODE_FLAGS_UNHEALTHY;
|
||||
node->rx_cnt = 0;
|
||||
node->dead_count = 0;
|
||||
DEBUG(1,("%s: node %s is dead: %u connected\n",
|
||||
@ -357,6 +357,7 @@ void ctdb_node_connected(struct ctdb_node *node)
|
||||
node->ctdb->num_connected++;
|
||||
node->dead_count = 0;
|
||||
node->flags &= ~NODE_FLAGS_DISCONNECTED;
|
||||
node->flags |= NODE_FLAGS_UNHEALTHY;
|
||||
DEBUG(1,("%s: connected to %s - %u connected\n",
|
||||
node->ctdb->name, node->name, node->ctdb->num_connected));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user