[Ocfs2-tools-commits] khackel commits r439 -
branches/dlm-glue/dlmtools
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu Nov 25 02:14:24 CST 2004
Author: khackel
Date: 2004-11-25 02:14:22 -0600 (Thu, 25 Nov 2004)
New Revision: 439
Modified:
branches/dlm-glue/dlmtools/mount.ocfs2.c
Log:
wait in mount.ocfs2 until we see ourself in nodemap
Modified: branches/dlm-glue/dlmtools/mount.ocfs2.c
===================================================================
--- branches/dlm-glue/dlmtools/mount.ocfs2.c 2004-11-24 21:05:28 UTC (rev 438)
+++ branches/dlm-glue/dlmtools/mount.ocfs2.c 2004-11-25 08:14:22 UTC (rev 439)
@@ -447,11 +447,18 @@
/* at this point my node is heartbeating, so any other nodes
* joining right now must communicate with me */
- /* TODO: how much to sleep? */
- sleep(1);
- ret = get_node_map(groupnum, (char *)pre_nodemap);
- if (ret < 0)
- return ret;
+ while (1) {
+ ret = get_node_map(groupnum, (char *)pre_nodemap);
+ if (ret < 0)
+ return ret;
+ if (ocfs2_test_bit(my_nodenum, (char *)pre_nodemap)) {
+ printf("found myself (%u) in nodemap! continuing...\n", my_nodenum);
+ break;
+ } else {
+ printf("have not yet found myself (%u) in nodemap...\n", my_nodenum);
+ }
+ sleep(1);
+ }
again:
/* go create this group and add this node on every other node I see */
More information about the Ocfs2-tools-commits
mailing list