This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
master - libfence: remove ccs reconnect code
- From: David Teigland <teigland at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Mon, 10 Nov 2008 20:22:19 +0000 (UTC)
- Subject: master - libfence: remove ccs reconnect code
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=1a72ddf4738bf8511daae6ee429414b4e65c7bdf
Commit: 1a72ddf4738bf8511daae6ee429414b4e65c7bdf
Parent: 1e26c3d367b6780b81f76f092e3e60614b6b0287
Author: David Teigland <teigland@redhat.com>
AuthorDate: Mon Nov 10 14:02:50 2008 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Mon Nov 10 14:02:50 2008 -0600
libfence: remove ccs reconnect code
ccs no longer has the problem of connections timing out.
Signed-off-by: David Teigland <teigland@redhat.com>
---
fence/libfence/agent.c | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
diff --git a/fence/libfence/agent.c b/fence/libfence/agent.c
index c04df17..247c6d5 100644
--- a/fence/libfence/agent.c
+++ b/fence/libfence/agent.c
@@ -298,21 +298,7 @@ int fence_node(char *victim)
for (m = 0; m < num_methods; m++) {
error = get_method(cd, victim, m, &method);
-
- /* if the connection timed out while we were trying
- * to fence, try to open the connection again
- */
- if (error == -EBADR) {
- syslog(LOG_INFO, "ccs connection timed out, "
- "retrying\n");
-
- while ((cd = ccs_connect()) < 0)
- sleep(1);
-
- error = get_method(cd, victim, m, &method);
- if (error)
- continue;
- } else if (error)
+ if (error)
continue;
/* if num_devices is zero we should return an error */