From: pcaulfield@sourceware.org <pcaulfield@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/cman/daemon barrier.c commands.c
Date: 26 Jun 2007 09:09:16 -0000 [thread overview]
Message-ID: <20070626090916.21681.qmail@sourceware.org> (raw)
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2007-06-26 09:09:14
Modified files:
cman/daemon : barrier.c commands.c
Log message:
Fix timer durations
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/barrier.c.diff?cvsroot=cluster&r1=1.10&r2=1.11
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/commands.c.diff?cvsroot=cluster&r1=1.64&r2=1.65
--- cluster/cman/daemon/barrier.c 2007/06/13 09:13:36 1.10
+++ cluster/cman/daemon/barrier.c 2007/06/26 09:09:13 1.11
@@ -285,7 +285,7 @@
/* Start the timer if one was wanted */
if (barrier->timeout) {
- openais_timer_add_duration(barrier->timeout*1000000, barrier,
+ openais_timer_add_duration((unsigned long long)barrier->timeout*1000000000ULL, barrier,
barrier_timer_fn, &barrier->timer);
}
--- cluster/cman/daemon/commands.c 2007/06/13 09:13:36 1.64
+++ cluster/cman/daemon/commands.c 2007/06/26 09:09:13 1.65
@@ -944,7 +944,7 @@
/* Start the timer. If we don't get a full set of replies before this goes
off we'll cancel the shutdown */
- openais_timer_add_duration(shutdown_timeout*1000, NULL,
+ openais_timer_add_duration((unsigned long long)shutdown_timeout*1000000, NULL,
shutdown_timer_fn, &shutdown_timer);
notify_listeners(NULL, EVENT_REASON_TRY_SHUTDOWN, flags);
@@ -1026,7 +1026,7 @@
log_msg(LOG_ERR, "Can't read CCS to get updated config version %d. Activity suspended on this node\n",
wanted_config_version);
- openais_timer_add_duration(ccsd_poll_interval*1000, NULL,
+ openais_timer_add_duration((unsigned long long)ccsd_poll_interval*1000000, NULL,
ccsd_timer_fn, &ccsd_timer);
}
else {
@@ -1050,7 +1050,7 @@
recalculate_quorum(0);
}
else {
- openais_timer_add_duration(quorumdev_poll*1000, quorum_device,
+ openais_timer_add_duration((unsigned long long)quorumdev_poll*1000000, quorum_device,
quorum_device_timer_fn, &quorum_device_timer);
}
}
@@ -1070,7 +1070,7 @@
quorum_device->state = NODESTATE_MEMBER;
recalculate_quorum(0);
- openais_timer_add_duration(quorumdev_poll*1000, quorum_device,
+ openais_timer_add_duration((unsigned long long)quorumdev_poll*1000000, quorum_device,
quorum_device_timer_fn, &quorum_device_timer);
}
}
@@ -1493,7 +1493,7 @@
msg->config_version);
wanted_config_version = msg->config_version;
- openais_timer_add_duration(ccsd_poll_interval*1000, NULL,
+ openais_timer_add_duration((unsigned long long)ccsd_poll_interval*1000000, NULL,
ccsd_timer_fn, &ccsd_timer);
}
if (config_version > msg->config_version) {
@@ -1653,7 +1653,7 @@
recalculate_quorum(0);
wanted_config_version = config_version;
- openais_timer_add_duration(ccsd_poll_interval*1000, NULL,
+ openais_timer_add_duration((unsigned long long)ccsd_poll_interval*1000000, NULL,
ccsd_timer_fn, &ccsd_timer);
}
break;
next reply other threads:[~2007-06-26 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-26 9:09 pcaulfield [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-06-13 9:13 [Cluster-devel] cluster/cman/daemon barrier.c commands.c pcaulfield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070626090916.21681.qmail@sourceware.org \
--to=pcaulfield@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).