From mboxrd@z Thu Jan 1 00:00:00 1970 From: teigland@sourceware.org Date: 3 Nov 2006 15:33:47 -0000 Subject: [Cluster-devel] cluster/group/gfs_controld plock.c Message-ID: <20061103153347.21187.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- 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);