From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-101-g52d85c3
Date: 28 Mar 2008 04:53:45 -0000 [thread overview]
Message-ID: <20080328045345.1331.qmail@sourceware.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".
http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=52d85c30227993e5ae60c8846eef3baf42c279d5
The branch, master has been updated
via 52d85c30227993e5ae60c8846eef3baf42c279d5 (commit)
from b593d15ea42423440da2e6fdaf2bb9754d03632b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 52d85c30227993e5ae60c8846eef3baf42c279d5
Author: Fabio M. Di Nitto <fabbione@fabbione.net>
Date: Fri Mar 28 05:52:34 2008 +0100
[CMAN] Do not duplicate entries in the objdb
A dump-db did show duplicate entries of logging and totem
because we were not looking for previous entries correctly.
Make sure to reset to the proper handle before searching.
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
-----------------------------------------------------------------------
Summary of changes:
cman/daemon/cman-preconfig.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index b3dc805..ba114bc 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -127,10 +127,11 @@ static int add_ifaddr(struct objdb_iface_ver0 *objdb, char *mcast, char *ifaddr,
return -1;
}
- if (objdb->object_find(OBJECT_PARENT_HANDLE,
+ objdb->object_find_reset(OBJECT_PARENT_HANDLE);
+ if (objdb->object_find(OBJECT_PARENT_HANDLE,
"totem", strlen("totem"), &totem_object_handle)) {
- objdb->object_create(OBJECT_PARENT_HANDLE, &totem_object_handle,
+ objdb->object_create(OBJECT_PARENT_HANDLE, &totem_object_handle,
"totem", strlen("totem"));
}
@@ -616,6 +617,7 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb)
}
/* Make sure mainconfig doesn't stomp on our logging options */
+ objdb->object_find_reset(OBJECT_PARENT_HANDLE);
if (objdb->object_find(OBJECT_PARENT_HANDLE,
"logging", strlen("logging"), &object_handle)) {
hooks/post-receive
--
Cluster Project
reply other threads:[~2008-03-28 4:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080328045345.1331.qmail@sourceware.org \
--to=fabbione@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.