public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* dlm: master - dlm_controld: add some log messages
@ 2009-03-31 15:06 David Teigland
0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-03-31 15:06 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/dlm.git?p=dlm.git;a=commitdiff;h=625fa3e6ded1623146e7bcd06a3372fb4f616f2b
Commit: 625fa3e6ded1623146e7bcd06a3372fb4f616f2b
Parent: 9ece1eee48182537cf54f20ee54bece54cfd64dc
Author: David Teigland <teigland@redhat.com>
AuthorDate: Tue Mar 31 10:00:26 2009 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Tue Mar 31 10:00:26 2009 -0500
dlm_controld: add some log messages
providing more info about the shutdown process
Signed-off-by: David Teigland <teigland@redhat.com>
---
group/dlm_controld/main.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/group/dlm_controld/main.c b/group/dlm_controld/main.c
index 9fde4f3..32ed522 100644
--- a/group/dlm_controld/main.c
+++ b/group/dlm_controld/main.c
@@ -839,6 +839,7 @@ void cluster_dead(int ci)
static void loop(void)
{
+ struct lockspace *ls;
int poll_timeout = -1;
int rv, i;
void (*workfn) (int ci);
@@ -856,9 +857,8 @@ static void loop(void)
rv = setup_cluster_cfg();
if (rv < 0)
goto out;
- /* Not all cluster types use cfg */
- if(rv > 0)
- client_add(rv, process_cluster_cfg, cluster_dead);
+ if (rv > 0)
+ client_add(rv, process_cluster_cfg, cluster_dead);
rv = setup_cluster();
if (rv < 0)
@@ -919,6 +919,7 @@ static void loop(void)
if (rv == -1 && errno == EINTR) {
if (daemon_quit && list_empty(&lockspaces))
goto out;
+ log_error("shutdown ignored, active lockspaces");
daemon_quit = 0;
continue;
}
@@ -965,6 +966,7 @@ static void loop(void)
query_unlock();
}
out:
+ log_debug("shutdown");
close_plocks();
close_cpg();
clear_configfs();
@@ -973,8 +975,8 @@ static void loop(void)
close_cluster();
close_cluster_cfg();
- if (!list_empty(&lockspaces))
- log_error("lockspaces abandoned");
+ list_for_each_entry(ls, &lockspaces, list)
+ log_error("abandoned lockspace %s", ls->name);
}
static void lockfile(void)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-31 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31 15:06 dlm: master - dlm_controld: add some log messages 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).