cluster: RHEL6 - cman: fix ttl default if no value is specified

Fabio M. Di Nitto fabbione at fedoraproject.org
Mon Jun 20 13:34:21 UTC 2011


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8aed0b01c8372bde746132c6aea3465a12cd164d
Commit:        8aed0b01c8372bde746132c6aea3465a12cd164d
Parent:        0b505a0b890dfe8898a612cd45667f0ba2086304
Author:        Fabio M. Di Nitto <fdinitto at redhat.com>
AuthorDate:    Mon Jun 20 09:49:34 2011 +0200
Committer:     Fabio M. Di Nitto <fdinitto at redhat.com>
CommitterDate: Mon Jun 20 15:33:48 2011 +0200

cman: fix ttl default if no value is specified

when specifing a multicast address, ttl was set to 0 unless
ttl was explicitly set in cluster.conf.

Resolves: rhbz#713977

Reviewed-by: Lon Hohberger <lhh at redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
 cman/daemon/cman-preconfig.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c
index 5a73fb3..cde130b 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -691,7 +691,7 @@ static int get_nodename(struct objdb_iface_ver0 *objdb)
 			if (objdb->object_find_next(find_handle2, &mcast_handle) == 0) {
 
 				objdb_get_string(objdb, mcast_handle, "addr", &mcast_name);
-				objdb_get_int(objdb, mcast_handle, "ttl", &ttl, 0);
+				objdb_get_int(objdb, mcast_handle, "ttl", &ttl, ttl);
 			}
 			objdb->object_find_destroy(find_handle2);
 		}


More information about the cluster-commits mailing list