public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - libfence: fix unfence_node return value
@ 2009-02-26 21:23 David Teigland
0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-02-26 21:23 UTC (permalink / raw)
To: cluster-cvs-relay
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-02-26 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-26 21:23 cluster: STABLE3 - libfence: fix unfence_node return value David Teigland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).