[Cluster-devel] cluster/cman/cman_tool main.c
pcaulfield at sourceware.org
pcaulfield at sourceware.org
Mon Jul 10 13:13:02 UTC 2006
CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: pcaulfield at sourceware.org 2006-07-10 13:13:01
Modified files:
cman/cman_tool : main.c
Log message:
Allow zero votes.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/cman_tool/main.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.12.2.7.6.3&r2=1.12.2.7.6.4
--- cluster/cman/cman_tool/main.c 2005/12/12 16:33:37 1.12.2.7.6.3
+++ cluster/cman/cman_tool/main.c 2006/07/10 13:13:01 1.12.2.7.6.4
@@ -557,7 +557,7 @@
if (!comline->clustername[0])
die("cluster name not set");
- if (!comline->votes_opt)
+ if (comline->votes < 0)
comline->votes = DEFAULT_VOTES;
if (!comline->port)
@@ -623,6 +623,7 @@
prog_name = argv[0];
memset(&comline, 0, sizeof(commandline_t));
+ comline.votes = -1;
decode_arguments(argc, argv, &comline);
More information about the Cluster-devel
mailing list