diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-06-07 15:18:55 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-06-07 15:18:55 +1000 |
commit | 2ed57a9ae1fa09c247c308e3878abd80bc23c42e (patch) | |
tree | 96dc9294f6e053009f3a5d7c4abe5d5372431ab4 /ctdb/tcp/tcp_connect.c | |
parent | 9754d16d4806463c53cc3233640c828982aa0b2c (diff) | |
parent | e0fbd04697d05edd32e419993a0f0e4a19633626 (diff) | |
download | samba-2ed57a9ae1fa09c247c308e3878abd80bc23c42e.tar.gz samba-2ed57a9ae1fa09c247c308e3878abd80bc23c42e.tar.xz samba-2ed57a9ae1fa09c247c308e3878abd80bc23c42e.zip |
implement a scheme where nodes are banned if they continuously caused the cluster
to start a recovery session. The node is banned from the cluster for the RecoveryBanPeriod (default of 5 minutes)
(This used to be ctdb commit 4ad43dd07f526b6002477177fbf55483246c2c0c)
Diffstat (limited to 'ctdb/tcp/tcp_connect.c')
-rw-r--r-- | ctdb/tcp/tcp_connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c index e44fbfb923..79717845f5 100644 --- a/ctdb/tcp/tcp_connect.c +++ b/ctdb/tcp/tcp_connect.c @@ -274,7 +274,7 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb) ctdb->address.address, ctdb->address.port); ctdb->vnn = ctdb->nodes[i]->vnn; - ctdb->nodes[i]->flags |= NODE_FLAGS_CONNECTED; + ctdb->nodes[i]->flags &= ~NODE_FLAGS_DISCONNECTED; DEBUG(1,("ctdb chose network address %s:%u vnn %u\n", ctdb->address.address, ctdb->address.port, |