[Ocfs2-commits] khackel commits r827 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Mar 31 16:10:01 CST 2004


Author: khackel
Date: 2004-03-31 16:09:59 -0600 (Wed, 31 Mar 2004)
New Revision: 827

Modified:
   trunk/src/hash.c
   trunk/src/vote.c
Log:
additional debugging info for a couple problems seen lately



Modified: trunk/src/hash.c
===================================================================
--- trunk/src/hash.c	2004-03-31 02:14:00 UTC (rev 826)
+++ trunk/src/hash.c	2004-03-31 22:09:59 UTC (rev 827)
@@ -758,7 +758,9 @@
 				sem->s_bh = bh;
 			}
 			if (sem->s_bh != bh) {
-				LOG_ERROR_STR("ocfs_bh_sem bufferhead does not match!");
+				LOG_ERROR_ARGS("bad bh_sem->bh: sem(%p,%lu,%lu), new(%p,%lu)\n",
+					       sem->s_bh, sem->s_bh ? sem->s_bh->b_blocknr : 0, 
+					       sem->s_blocknr, bh, bh->b_blocknr);
 				BUG();
 			}
 			break;

Modified: trunk/src/vote.c
===================================================================
--- trunk/src/vote.c	2004-03-31 02:14:00 UTC (rev 826)
+++ trunk/src/vote.c	2004-03-31 22:09:59 UTC (rev 827)
@@ -358,7 +358,9 @@
 
 	if (!(lockres->vote_state & LOCK_STATE_IN_VOTING) ||
 	    (lockres->last_upd_seq_num != reply_msg->lock_seq_num)) {
-		LOG_TRACE_STR ("Ignoring netdlm message");
+		LOG_TRACE_ARGS ("Ignoring netdlm message, invoting=%s, msgseq=%u.%u, lockseq=%u.%u\n",
+				lockres->vote_state & LOCK_STATE_IN_VOTING ? "true" : "false",
+				HILO(reply_msg->lock_seq_num), HILO(lockres->last_upd_seq_num));
 		goto bail;
 	}
 



More information about the Ocfs2-commits mailing list