Skip to contentSkip to conversation

cluster/group/gfs_controld plock.c

Cluster-devel [email protected] 1 participant 1 message Nov 3, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-11-03 15:33:46

Modified files:
group/gfs_controld: plock.c

Log message:
When a new master joins the mountgroup, it retrieves plocks from the ckpt created by the old master, then unlinks and closes the ckpt so it can create another new ckpt later.

Bug found by sdake where the ckpt close following the unlink was being skipped because the ckpt handle wasn't being set.

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

group/gfs_controld/plock.c +1 -0
@@ -1389,6 +1389,7 @@
 	if (mg->low_nodeid == our_nodeid) {
 		/* we're the new low nodeid, will be master */
 		log_group(mg, "retrieve_plocks: unlink ckpt from old master");
+		mg->cp_handle = (uint64_t) h;
 		_unlink_checkpoint(mg, &name);
 	} else
 		saCkptCheckpointClose(h);