Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 907989 Details for
Bug 1078361
Implement dynamic token timeout and make it default
[?]
New
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.rh83 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]
Really clear totemconfig nodes on reload
tmp.Y9EBtWGnAR (text/plain), 1.95 KB, created by
Jan Friesse
on 2014-06-12 07:39:39 UTC
(
hide
)
Description:
Really clear totemconfig nodes on reload
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2014-06-12 07:39:39 UTC
Size:
1.95 KB
patch
obsolete
>From eeb2384157351ff460be0648d954e5e97213d532 Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Thu, 20 Mar 2014 15:26:27 +0100 >Subject: [PATCH] Really clear totemconfig nodes on reload > >When reload was called nodes were constantly added to totemconfig >nodelist. > >So simple corosync-cfgtool -R resulted very quickly in filling whole >array and segfault. > >Solution is to clear member_count. > >Clearing is also moved directly to put_nodelist_members_to_config to >make sure it's always processed. > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >Reviewed-by: Christine Caulfield <ccaulfie@redhat.com> >--- > exec/totemconfig.c | 18 +++++++++--------- > 1 files changed, 9 insertions(+), 9 deletions(-) > >diff --git a/exec/totemconfig.c b/exec/totemconfig.c >index 7180646..0fa9777 100644 >--- a/exec/totemconfig.c >+++ b/exec/totemconfig.c >@@ -349,6 +349,15 @@ static void put_nodelist_members_to_config(struct totem_config *totem_config) > char *node_addr_str; > int member_count; > unsigned int ringnumber = 0; >+ int i, j; >+ >+ /* Clear out nodelist so we can put the new one in if needed */ >+ for (i = 0; i < totem_config->interface_count; i++) { >+ for (j = 0; j < PROCESSOR_COUNT_MAX; j++) { >+ memset(&totem_config->interfaces[i].member_list[j], 0, sizeof(struct totem_ip_address)); >+ } >+ totem_config->interfaces[i].member_count = 0; >+ } > > iter = icmap_iter_init("nodelist.node."); > while ((iter_key = icmap_iter_next(iter, NULL, NULL)) != NULL) { >@@ -1209,15 +1218,6 @@ static void totem_reload_notify( > > /* Reload has completed */ > if (*(uint8_t *)new_val.data == 0) { >- int i, j; >- >- /* Clear out udpu nodelist so we can put the new one in if neede */ >- for (i=0; i<totem_config->interface_count; i++) { >- for (j=0; j<PROCESSOR_COUNT_MAX; j++) { >- memset(&totem_config->interfaces[i].member_list[j], 0, sizeof(struct totem_ip_address)); >- } >- } >- > put_nodelist_members_to_config (totem_config); > totem_volatile_config_read (totem_config); > >-- >1.7.1 >
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 1078361
:
907987
|
907988
| 907989 |
907990
|
907991
|
907992
|
907993
|
946428
|
946429
|
946430