[Cluster-devel] cluster/cmirror-kernel/src dm-cmirror-server.c

jbrassow at sourceware.org jbrassow at sourceware.org
Tue Jun 27 20:25:00 UTC 2006


CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	jbrassow at sourceware.org	2006-06-27 20:24:59

Modified files:
	cmirror-kernel/src: dm-cmirror-server.c 

Log message:
	- I was incorrectly decrementing the sync count when a mirror region
	went out of sync.  We need to properly log the reset in the bits,
	but still allow nodes to detect the failure of the device and be
	able to switch the primary device.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cmirror-kernel/src/dm-cmirror-server.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.10&r2=1.1.2.11

--- cluster/cmirror-kernel/src/Attic/dm-cmirror-server.c	2006/06/21 21:09:49	1.1.2.10
+++ cluster/cmirror-kernel/src/Attic/dm-cmirror-server.c	2006/06/27 20:24:59	1.1.2.11
@@ -586,7 +586,7 @@
 		}
 	} else if (log_test_bit(lc->sync_bits, lr->u.lr_region)) {
 		DMERR("complete_resync_work region going out-of-sync: disk failure");
-		lc->sync_count--;
+		/* gone for now: lc->sync_count--; */
 		log_clear_bit(lc, lc->sync_bits, lr->u.lr_region);
 	}
 




More information about the Cluster-devel mailing list