[DRBD-cvs] svn commit by phil - r2641 - trunk/drbd - Fixed an other bug That Ernest of Stratus pointed out.

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Fri Dec 22 14:39:18 CET 2006


Author: phil
Date: 2006-12-22 14:39:17 +0100 (Fri, 22 Dec 2006)
New Revision: 2641

Modified:
   trunk/drbd/drbd_receiver.c
Log:
Fixed an other bug That Ernest of Stratus pointed out.


Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c	2006-12-21 15:49:27 UTC (rev 2640)
+++ trunk/drbd/drbd_receiver.c	2006-12-22 13:39:17 UTC (rev 2641)
@@ -1927,10 +1927,10 @@
 	}
 
 	if ( hg == -100 ) {
-		if(mdev->net_conf->want_lose && !mdev->p_uuid[UUID_FLAGS]) {
+		if(mdev->net_conf->want_lose && !(mdev->p_uuid[UUID_FLAGS]&1)){
 			hg = -1;
 		}
-		if(!mdev->net_conf->want_lose && mdev->p_uuid[UUID_FLAGS]) {
+		if(!mdev->net_conf->want_lose && (mdev->p_uuid[UUID_FLAGS]&1)){
 			hg = 1;
 		}
 



More information about the drbd-cvs mailing list