cluster: RHEL61 - cman: fix ttl default if no value is specified
Fabio M. Di Nitto
fabbione at fedoraproject.org
Mon Jul 11 07:21:15 UTC 2011
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=39e0d5eb41f88b329f8d6cac44f95ab02f620b1d
Commit: 39e0d5eb41f88b329f8d6cac44f95ab02f620b1d
Parent: 38fc4537c74c3de161df461a8c3fdc85b508f95c
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 Jul 11 09:20:42 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 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