[Cluster-devel] [PATCH] cman: fix ttl default if no value is specified
Fabio M. Di Nitto
fdinitto at redhat.com
Mon Jun 20 08:00:53 UTC 2011
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 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 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);
}
--
1.7.4.4
More information about the Cluster-devel
mailing list