[Cluster-devel] cluster/cman/daemon commands.c
pcaulfield at sourceware.org
pcaulfield at sourceware.org
Tue Jan 9 13:31:23 UTC 2007
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2007-01-09 13:31:23
Modified files:
cman/daemon : commands.c
Log message:
quorumdev_poll is in milliseconds, not seconds!
Thanks to Simone Gotti
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.57&r2=1.58
--- cluster/cman/daemon/commands.c 2007/01/08 10:16:17 1.57
+++ cluster/cman/daemon/commands.c 2007/01/09 13:31:23 1.58
@@ -1042,7 +1042,7 @@
return;
gettimeofday(&now, NULL);
- if (quorum_device->last_hello.tv_sec + quorumdev_poll < now.tv_sec) {
+ if (quorum_device->last_hello.tv_sec + quorumdev_poll/1000 < now.tv_sec) {
quorum_device->state = NODESTATE_DEAD;
log_msg(LOG_INFO, "lost contact with quorum device\n");
recalculate_quorum(0);
More information about the Cluster-devel
mailing list