[DRBD-cvs] r1503 - trunk/drbd

svn at svn.drbd.org svn at svn.drbd.org
Wed Aug 25 16:38:13 CEST 2004


Author: phil
Date: 2004-08-25 16:38:07 +0200 (Wed, 25 Aug 2004)
New Revision: 1503

Modified:
   trunk/drbd/drbd_fs.c
Log:
ignore --human primary if connected



Modified: trunk/drbd/drbd_fs.c
===================================================================
--- trunk/drbd/drbd_fs.c	2004-08-24 15:09:30 UTC (rev 1502)
+++ trunk/drbd/drbd_fs.c	2004-08-25 14:38:07 UTC (rev 1503)
@@ -724,6 +724,12 @@
 			} else {
 				return -EIO;
 			}
+		} else if (mdev->cstate >= Connected) {
+			/* do NOT increase the Human count if we are connected,
+			 * and there is no reason for it.  See
+			 * drbd_lk9.pdf middle of Page 7
+			 */
+			newstate &= ~(Human|DontBlameDrbd);
 		}
 	}
 



More information about the drbd-cvs mailing list