[Ocfs2-commits] mfasheh commits r2474 - trunk/fs/ocfs2/cluster
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Mon Jul 25 13:46:52 CDT 2005
Author: mfasheh
Signed-off-by: manish
Date: 2005-07-25 13:46:51 -0500 (Mon, 25 Jul 2005)
New Revision: 2474
Modified:
trunk/fs/ocfs2/cluster/nodemanager.c
Log:
* cl_local_node was being set to different values on shutdown depending on
where it needed to be cleared. Fix this by using INVALID_NODE_NUM
everywhere.
Signed-off-by: manish
Modified: trunk/fs/ocfs2/cluster/nodemanager.c
===================================================================
--- trunk/fs/ocfs2/cluster/nodemanager.c 2005-07-22 19:22:45 UTC (rev 2473)
+++ trunk/fs/ocfs2/cluster/nodemanager.c 2005-07-25 18:46:51 UTC (rev 2474)
@@ -401,7 +401,7 @@
if (!tmp && cluster->cl_has_local &&
cluster->cl_local_node == node->nd_num) {
o2net_stop_listening(node);
- cluster->cl_local_node = 0;
+ cluster->cl_local_node = O2NM_INVALID_NODE_NUM;
}
node->nd_local = tmp;
@@ -576,7 +576,7 @@
if (cluster->cl_has_local &&
(cluster->cl_local_node == node->nd_num)) {
cluster->cl_has_local = 0;
- cluster->cl_local_node = O2NM_MAX_NODES;
+ cluster->cl_local_node = O2NM_INVALID_NODE_NUM;
o2net_stop_listening(node);
}
More information about the Ocfs2-commits
mailing list