[DRBD-cvs] svn commit by phil - r2622 - trunk/drbd - This micro patch fixes a bug that triggers when: * One

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Sat Dec 9 10:25:52 CET 2006


Author: phil
Date: 2006-12-09 10:25:51 +0100 (Sat, 09 Dec 2006)
New Revision: 2622

Modified:
   trunk/drbd/drbd_receiver.c
Log:
This micro patch fixes a bug that triggers when:

 * One of the nodes changes its role to primary while 
   the nodes are in WFReportParams state.conn .

the outcome was:

 * The still secondary node changed its state into WFBitMapT
   but the new primary faild to go into WFBitMapT and advanced
   to Connected.

This will no longer happen.


Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c	2006-12-08 12:58:38 UTC (rev 2621)
+++ trunk/drbd/drbd_receiver.c	2006-12-09 09:25:51 UTC (rev 2622)
@@ -2358,7 +2358,7 @@
 	}
 
 	if (mdev->state.conn > WFReportParams ) {
-		if( nconn > Connected && peer_state.conn == Connected) {
+		if( nconn > Connected && peer_state.conn <= Connected) {
 			// we want resync, peer has not yet decided to sync...
 			drbd_send_uuids(mdev);
 			drbd_send_state(mdev);



More information about the drbd-cvs mailing list