cluster: RHEL6 - Print cpg_mcast_joined() return value and errno if it fails
Ryan McCabe
rmccabe at fedoraproject.org
Tue May 1 15:01:46 UTC 2012
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=15993079738bf0e07e93c4f07e1816388654e283
Commit: 15993079738bf0e07e93c4f07e1816388654e283
Parent: 4378569f8f41d58313284b88aa6a54df3346546e
Author: Ryan McCabe <rmccabe at redhat.com>
AuthorDate: Wed Apr 25 09:34:03 2012 -0400
Committer: Ryan McCabe <rmccabe at redhat.com>
CommitterDate: Tue May 1 11:00:07 2012 -0400
Print cpg_mcast_joined() return value and errno if it fails
Signed-off-by: Ryan McCabe <rmccabe at redhat.com>
Reviewed-by: Lon Hohberger <lhh at redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
rgmanager/src/daemons/cpglockd.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/rgmanager/src/daemons/cpglockd.c b/rgmanager/src/daemons/cpglockd.c
index a3943a2..689c494 100644
--- a/rgmanager/src/daemons/cpglockd.c
+++ b/rgmanager/src/daemons/cpglockd.c
@@ -436,7 +436,8 @@ send_lock_msg(struct cpg_lock_msg *m)
do {
ret = cpg_mcast_joined(cpg, CPG_TYPE_AGREED, &iov, 1);
if (ret != CPG_OK) {
- logt_print(LOG_DEBUG, "send_lock_msg() failed\n");
+ logt_print(LOG_DEBUG, "send_lock_msg() failed %d: %s\n",
+ ret, strerror(errno));
usleep(250000);
}
} while (ret != CPG_OK && !shutdown_pending);
More information about the cluster-commits
mailing list