public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - dlm_controld: skip unlink with no ckpt
@ 2009-03-27 16:33 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2009-03-27 16:33 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=c1e139fb328408891d054e577b33d724230dde43
Commit:        c1e139fb328408891d054e577b33d724230dde43
Parent:        c95cf4b05ba0c7b81559f06a5ee825389d8c70ce
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Fri Mar 27 11:26:07 2009 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Fri Mar 27 11:28:25 2009 -0500

dlm_controld: skip unlink with no ckpt

Check if there's no previous checkpoint to unlink instead of trying
to unlink with a handle of 0, triggering an error message.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 group/dlm_controld/plock.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/group/dlm_controld/plock.c b/group/dlm_controld/plock.c
index 2acfe62..680695e 100644
--- a/group/dlm_controld/plock.c
+++ b/group/dlm_controld/plock.c
@@ -1669,6 +1669,9 @@ static int _unlink_checkpoint(struct lockspace *ls, SaNameT *name)
 	h = (SaCkptCheckpointHandleT) ls->plock_ckpt_handle;
 	log_group(ls, "unlink ckpt %llx", (unsigned long long)h);
 
+	if (!h)
+		return;
+
  unlink_retry:
 	rv = saCkptCheckpointUnlink(system_ckpt_handle, name);
 	if (rv == SA_AIS_ERR_TRY_AGAIN) {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-27 16:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-27 16:33 cluster: STABLE3 - dlm_controld: skip unlink with no ckpt 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).