From: Fabio M. Di Nitto <fabbione@ubuntu.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/3] Clean up duplicate ccs query paths.
Date: Tue, 23 Oct 2007 06:49:33 +0200 [thread overview]
Message-ID: <11931149753164-git-send-email-> (raw)
In-Reply-To: <1193114975255-git-send-email->
From: Fabio M. Di Nitto <fabbione@ubuntu.com>
Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
---
:100644 100644 33b5dd7... 0de3d0c... M cman/daemon/cmanccs.c
cman/daemon/cmanccs.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/cman/daemon/cmanccs.c b/cman/daemon/cmanccs.c
index 33b5dd7..0de3d0c 100644
--- a/cman/daemon/cmanccs.c
+++ b/cman/daemon/cmanccs.c
@@ -45,7 +45,6 @@
#define PORT_PATH "/cluster/cman/@port"
#define KEY_PATH "/cluster/cman/@keyfile"
-#define NODEI_NAME_PATH "/cluster/clusternodes/clusternode[%d]/@name"
#define NODE_NAME_PATH_BYNAME "/cluster/clusternodes/clusternode[@name=\"%s\"]/@name"
#define NODE_NAME_PATH_BYNUM "/cluster/clusternodes/clusternode[%d]/@name"
#define NODE_VOTES_PATH "/cluster/clusternodes/clusternode[@name=\"%s\"]/@votes"
@@ -500,7 +499,7 @@ static int get_ccs_join_info(void)
for (i = 1; ; i++) {
name = NULL;
memset(path, 0, MAX_PATH_LEN);
- sprintf(path, NODEI_NAME_PATH, i);
+ sprintf(path, NODE_NAME_PATH_BYNUM, i);
error = ccs_get(cd, path, &name);
if (error || !name)
--
1.5.2.5
next prev parent reply other threads:[~2007-10-23 4:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-23 4:49 [Cluster-devel] Small cman cleanup patches Fabio M. Di Nitto
2007-10-23 4:49 ` Fabio M. Di Nitto [this message]
2007-10-23 4:49 ` [Cluster-devel] [PATCH 2/3] Use right vars to print debugging info Fabio M. Di Nitto
2007-10-23 4:49 ` [Cluster-devel] [PATCH 3/3] Use standard path var and memset it before each query Fabio M. Di Nitto
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=11931149753164-git-send-email- \
--to=fabbione@ubuntu.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).