[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/group/gfs_controld plock.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland sourceware org	2006-08-17 19:39:17

Modified files:
	group/gfs_controld: plock.c 

Log message:
	change debug messages related to storing/retrieving plocks to/from
	checkpoints to see more details about the ckpt

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/plock.c.diff?cvsroot=cluster&r1=1.16&r2=1.17

--- cluster/group/gfs_controld/plock.c	2006/08/16 19:30:36	1.16
+++ cluster/group/gfs_controld/plock.c	2006/08/17 19:39:17	1.17
@@ -986,8 +986,6 @@
 	}
 
 	section_len = count * sizeof(struct pack_plock);
-
-	log_group(mg, "plock pack %llx count %d", r->number, count);
 }
 
 int unpack_section_buf(struct mountgroup *mg, char *numbuf, int buflen)
@@ -1007,8 +1005,6 @@
 	INIT_LIST_HEAD(&r->waiters);
 	sscanf(numbuf, "r%llu", &r->number);
 
-	log_group(mg, "plock unpack %llx count %d", r->number, count);
-
 	pp = (struct pack_plock *) &section_buf;
 
 	for (i = 0; i < count; i++) {
@@ -1220,6 +1216,9 @@
 
 		pack_section_buf(mg, r);
 
+		log_group(mg, "store_plocks: section size %u id %u \"%s\"",
+			  section_len, section_id.idLen, buf);
+
 	 create_retry:
 		rv = saCkptSectionCreate(h, &section_attr, &section_buf,
 					 section_len);
@@ -1265,6 +1264,7 @@
 	SaCkptIOVectorElementT iov;
 	SaNameT name;
 	SaAisErrorT rv;
+	char buf[32];
 	int len;
 
 	if (!plocks_online)
@@ -1323,6 +1323,11 @@
 		iov.dataSize = desc.sectionSize;
 		iov.dataOffset = 0;
 
+		memset(&buf, 0, 32);
+		snprintf(buf, 32, "%s", desc.sectionId.id);
+		log_group(mg, "retrieve_plocks: section size %llu id %u \"%s\"",
+			  iov.dataSize, iov.sectionId.idLen, buf);
+
 	 read_retry:
 		rv = saCkptCheckpointRead(h, &iov, 1, NULL);
 		if (rv == SA_AIS_ERR_TRY_AGAIN) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]