[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-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

--- cluster/group/gfs_controld/plock.c	2006/10/16 17:12:10	1.24
+++ cluster/group/gfs_controld/plock.c	2006/11/03 15:33:46	1.25
@@ -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);


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