cluster: STABLE3 - libfence: fix unfence_node return value
David Teigland
teigland@fedoraproject.org
Thu Feb 26 21:23:00 GMT 2009
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f3cbe8016eda42244099d1c562e5b11eee809b9b
Commit: f3cbe8016eda42244099d1c562e5b11eee809b9b
Parent: 537c6d1b24fc5767c45025dd866d6d77e2a7f920
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Feb 26 15:19:27 2009 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Feb 26 15:19:27 2009 -0600
libfence: fix unfence_node return value
unfence_node wasn't returning 0 after successful unfencing
Signed-off-by: David Teigland <teigland@redhat.com>
---
fence/libfence/agent.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fence/libfence/agent.c b/fence/libfence/agent.c
index 46cf9c4..57163aa 100644
--- a/fence/libfence/agent.c
+++ b/fence/libfence/agent.c
@@ -575,6 +575,8 @@ int unfence_node(char *victim, struct fence_log *log, int log_size,
/* try to unfence all devices even if some of them fail,
but the final return value is 0 only if all succeed */
+ error = 0;
+
for (d = 0; d < num_devices; d++) {
rv = get_device_unfence(cd, victim, d, &device);
if (rv) {
More information about the Cluster-cvs
mailing list