Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: 5907f811b534423e1cfe7ce69619a403558f66d1
Parent: fd1a6e23de6397382732abb3b9286367b926ed33
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Wed Feb 15 13:26:52 2012 -0600
Committer: David Teigland <teigland(a)redhat.com>
CommitterDate: Wed Feb 15 13:27:19 2012 -0600
dlm_controld: fail to start with negative nodeid
Signed-off-by: David Teigland <teigland(a)redhat.com>
---
dlm_controld/member.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlm_controld/member.c b/dlm_controld/member.c
index 4a445c8..783fcb4 100644
--- a/dlm_controld/member.c
+++ b/dlm_controld/member.c
@@ -302,9 +302,16 @@ int setup_cluster_cfg(void)
corosync_cfg_finalize(ch);
return -1;
}
+
our_nodeid = nodeid;
log_debug("our_nodeid %d", our_nodeid);
+ if (our_nodeid < 0) {
+ log_error("negative nodeid, set corosync totem.clear_node_high_bit");
+ corosync_cfg_finalize(ch);
+ return -1;
+ }
+
return fd;
}