[DRBD-cvs] svn commit by phil - r2351 - trunk/drbd - Another small fix...

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Thu Aug 10 11:47:22 CEST 2006


Author: phil
Date: 2006-08-10 11:46:33 +0200 (Thu, 10 Aug 2006)
New Revision: 2351

Modified:
   trunk/drbd/drbd_receiver.c
Log:
Another small fix...


Modified: trunk/drbd/drbd_receiver.c
===================================================================
--- trunk/drbd/drbd_receiver.c	2006-08-10 09:37:28 UTC (rev 2350)
+++ trunk/drbd/drbd_receiver.c	2006-08-10 09:46:33 UTC (rev 2351)
@@ -2281,9 +2281,9 @@
 	}
 	ns = mdev->state;
 	spin_unlock_irq(&mdev->req_lock);
-	after_state_ch(mdev,os,ns,ChgStateVerbose);
+	if( r == SS_Success) after_state_ch(mdev,os,ns,ChgStateVerbose);
 
-	if( r >= 0 ) {
+	if( r >= SS_Success) {
 		drbd_md_sync(mdev);
 		drbd_send_short_cmd(mdev, OutdatedReply);
 		return TRUE;



More information about the drbd-cvs mailing list