Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 522060 Details for
Bug 735912
Cman RRP - Include mcast per NIC patch and set default threshold to 3
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch
bz735912.diff (text/plain), 2.20 KB, created by
Fabio Massimo Di Nitto
on 2011-09-08 08:28:28 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Fabio Massimo Di Nitto
Created:
2011-09-08 08:28:28 UTC
Size:
2.20 KB
patch
obsolete
>commit c4068be39600e7d95873f525cbb39b1cde474da3 >Author: Fabio M. Di Nitto <fdinitto@redhat.com> >Date: Thu Sep 8 10:24:58 2011 +0200 > > cman: default to 2 differnet mcast address in RRP mode and set rrp_problem_count_threshold > > Resolves: rhbz#735912 > > Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> > >diff --git a/cman/daemon/cman-preconfig.c b/cman/daemon/cman-preconfig.c >index 64f505f..a700ff7 100644 >--- a/cman/daemon/cman-preconfig.c >+++ b/cman/daemon/cman-preconfig.c >@@ -393,13 +393,14 @@ static uint16_t generate_cluster_id(char *name) > return value & 0xFFFF; > } > >-static char *default_mcast(char *node, uint16_t clusterid) >+static char *default_mcast(char *node, int altiface) > { > struct addrinfo *ainfo; > struct addrinfo ahints; > int ret; > int family; > static char addr[132]; >+ uint16_t clusterid = cluster_id + altiface; > > memset(&ahints, 0, sizeof(ahints)); > >@@ -691,7 +692,7 @@ static int get_nodename(struct objdb_iface_ver0 *objdb) > } > > if (!mcast_name) { >- mcast_name = default_mcast(nodename, cluster_id); >+ mcast_name = default_mcast(nodename, PRIMARY_IFACE); > > } > if (!mcast_name) >@@ -778,7 +779,7 @@ static int get_nodename(struct objdb_iface_ver0 *objdb) > objdb_get_int(objdb, alt_object, "ttl", &altttl, ttl); > > if (objdb_get_string(objdb, alt_object, "mcast", &mcast)) { >- mcast = mcast_name; >+ mcast = default_mcast(nodename, ALT_IFACE); > } > > if (add_ifaddr(objdb, mcast, node, portnum, altttl, >@@ -985,6 +986,8 @@ static void add_cman_overrides(struct objdb_iface_ver0 *objdb) > if (num_interfaces > 1) { > objdb->object_key_create_typed(object_handle, "rrp_mode", > "passive", strlen("passive")+1, OBJDB_VALUETYPE_STRING); >+ objdb->object_key_create_typed(object_handle, "rrp_problem_count_threshold", >+ "3", 2, OBJDB_VALUETYPE_STRING); > } > else { > objdb->object_key_create_typed(object_handle, "rrp_mode", >@@ -1136,7 +1139,7 @@ static int set_noccs_defaults(struct objdb_iface_ver0 *objdb) > num_nodenames = 1; > > if (!mcast_name) { >- mcast_name = default_mcast(nodename, cluster_id); >+ mcast_name = default_mcast(nodename, PRIMARY_IFACE); > } > > /* This will increase as nodes join the cluster */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 735912
:
522060
|
522068