[Ocfs2-commits] mfasheh commits r2395 - trunk/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jun 15 17:18:13 CDT 2005


Author: mfasheh
Signed-off-by: manish
Date: 2005-06-15 17:18:12 -0500 (Wed, 15 Jun 2005)
New Revision: 2395

Modified:
   trunk/fs/ocfs2/cluster/heartbeat.c
Log:
* don't allow heartbeat startup until the cluster information has
  fully been configured.

Signed-off-by: manish



Modified: trunk/fs/ocfs2/cluster/heartbeat.c
===================================================================
--- trunk/fs/ocfs2/cluster/heartbeat.c	2005-06-14 22:29:48 UTC (rev 2394)
+++ trunk/fs/ocfs2/cluster/heartbeat.c	2005-06-15 22:18:12 UTC (rev 2395)
@@ -1047,6 +1047,11 @@
 	if (reg->hr_bdev)
 		goto out;
 
+	/* We can't heartbeat without having had our node number
+	 * configured yet. */
+	if (o2nm_this_node() == O2NM_MAX_NODES)
+		goto out;
+
 	fd = simple_strtol(p, &p, 0);
 	if (!p || (*p && (*p != '\n')))
 		goto out;



More information about the Ocfs2-commits mailing list