From: Lon Hohberger <lhh@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] cman: Move token timeout into header file
Date: Tue, 13 Oct 2009 12:22:16 -0400 [thread overview]
Message-ID: <1255450936-19496-1-git-send-email-lhh@redhat.com> (raw)
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
cman/daemon/cman-preconfig.c | 3 ++-
cman/daemon/cman.h | 1 +
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index b39ca4c..4bd3d95 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -690,8 +690,9 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb)
/* Set the token timeout is 10 seconds, but don't overrride anything that
might be in cluster.conf */
if (objdb_get_string(objdb, object_handle, "token", &value)) {
+ snprintf(tmp, sizeof(tmp), "%d", DEFAULT_TOKEN_TIMEOUT);
objdb->object_key_create(object_handle, "token", strlen("token"),
- "10000", strlen("10000")+1);
+ tmp, strlen(tmp)+1);
}
if (objdb_get_string(objdb, object_handle, "token_retransmits_before_loss_const", &value)) {
objdb->object_key_create(object_handle, "token_retransmits_before_loss_const",
diff --git a/cman/daemon/cman.h b/cman/daemon/cman.h
index 67f76d3..dfcf014 100644
--- a/cman/daemon/cman.h
+++ b/cman/daemon/cman.h
@@ -11,6 +11,7 @@ extern int our_nodeid(void);
#define DEFAULT_PORT 5405
#define DEFAULT_CLUSTER_NAME "RHCluster"
#define DEFAULT_MAX_QUEUED 128
+#define DEFAULT_TOKEN_TIMEOUT 10000
#define DEFAULT_QUORUMDEV_POLL 10000
#define DEFAULT_SHUTDOWN_TIMEOUT 5000
#define DEFAULT_CCSD_POLL 1000
--
1.6.2.5
next reply other threads:[~2009-10-13 16:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 16:22 Lon Hohberger [this message]
2009-10-13 16:59 ` [Cluster-devel] Re: [PATCH] cman: Move token timeout into header file Lon Hohberger
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=1255450936-19496-1-git-send-email-lhh@redhat.com \
--to=lhh@redhat.com \
/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).