Gitweb:
http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=...
Commit: f0b85f3680510b03058a1e6e94fc11ad913ff59b
Parent: a548bd3333824341373a5f9a8ff9a456c5af59c8
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Mon Jun 20 09:49:34 2011 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Mon Jun 20 09:49:34 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
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)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 a890fb3..aeedf8b 100644
--- a/cman/daemon/cman-preconfig.c
+++ b/cman/daemon/cman-preconfig.c
@@ -673,7 +673,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);
}