This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: master - qdisk: Do not do a clean logout when exiting w/error
- From: Lon Hohberger <lon at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Tue, 11 Aug 2009 19:57:26 +0000 (UTC)
- Subject: cluster: master - qdisk: Do not do a clean logout when exiting w/error
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=654431f62a8bfe45cb8c7d2a9dd2f407d978a325
Commit: 654431f62a8bfe45cb8c7d2a9dd2f407d978a325
Parent: 9309c9289a63c0cd583438faa2212401f860a316
Author: Lon Hohberger <lhh@redhat.com>
AuthorDate: Mon Jul 13 11:47:38 2009 -0400
Committer: Lon Hohberger <lhh@redhat.com>
CommitterDate: Tue Aug 11 15:57:17 2009 -0400
qdisk: Do not do a clean logout when exiting w/ error
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
cman/qdisk/main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cman/qdisk/main.c b/cman/qdisk/main.c
index 0cc23b7..5fe6c11 100644
--- a/cman/qdisk/main.c
+++ b/cman/qdisk/main.c
@@ -1801,12 +1801,14 @@ main(int argc, char **argv)
io_nanny_start(ctx.qc_tko * ctx.qc_interval);
- if (quorum_loop(&ctx, ni, MAX_NODES_DISK) == 0)
+ if (quorum_loop(&ctx, ni, MAX_NODES_DISK) == 0) {
+ /* Only clean up if we're exiting w/o error) */
cman_unregister_quorum_device(ctx.qc_cman_admin);
+ quorum_logout(&ctx);
+ }
io_nanny_stop();
- quorum_logout(&ctx);
out:
/* free cman handle to avoid leak in cman */
cman_finish(ch_admin);