Rev 647: make sure reconnected nodes start off as unhealthy so they
don't get a public IP in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Wed Oct 10 00:45:23 GMT 2007
------------------------------------------------------------
revno: 647
revision-id: tridge at samba.org-20071010004522-256h49icxxzz7wcb
parent: tridge at samba.org-20071005035131-wb6hztn4jnypjsqi
committer: Andrew Tridgell <tridge at samba.org>
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));
}
More information about the samba-cvs
mailing list