------------------------------------------------------------
revno: 647
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Andrew Tridgell <[EMAIL PROTECTED]>
branch nick: tridge
timestamp: Wed 2007-10-10 10:45:22 +1000
message:
  make sure reconnected nodes start off as unhealthy so they don't get a public 
IP
modified:
  server/ctdb_server.c           ctdb.c-20061127094323-t50f58d65iaao5of-2
=== modified file 'server/ctdb_server.c'
--- a/server/ctdb_server.c      2007-09-24 00:00:14 +0000
+++ b/server/ctdb_server.c      2007-10-10 00:45:22 +0000
@@ -335,7 +335,7 @@
                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 @@
        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));
 }

Reply via email to