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 597045 Details for
Bug 838524
Votequorum should register reload callback only once
[?]
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]
Proposed patch
2012-07-09-0001-Register-reload-callback-only-once.patch (text/plain), 1.76 KB, created by
Jan Friesse
on 2012-07-09 11:30:07 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2012-07-09 11:30:07 UTC
Size:
1.76 KB
patch
obsolete
>From ac9fdf31414c548b1c0f47880814fb0193cffede Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Mon, 9 Jul 2012 13:24:35 +0200 >Subject: [PATCH] Register reload callback only once > >Votequorum should register reload callback only once and not after each >change in confdb. > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >--- > services/votequorum.c | 23 +++++++++++++---------- > 1 files changed, 13 insertions(+), 10 deletions(-) > >diff --git a/services/votequorum.c b/services/votequorum.c >index adc31ce..4d3687b 100644 >--- a/services/votequorum.c >+++ b/services/votequorum.c >@@ -227,6 +227,9 @@ static void exec_votequorum_killnode_endian_convert (void *msg); > static void add_votequorum_config_notification(hdb_handle_t quorum_object_handle); > > static void recalculate_quorum(int allow_decrease, int by_current_nodes); >+static void votequorum_objdb_reload_notify( >+ objdb_reload_notify_type_t type, int flush, >+ void *priv_data_pt); > > /* > * Library Handler Definition >@@ -533,6 +536,16 @@ static int votequorum_exec_init_fn (struct corosync_api_v1 *api) > > /* Listen for changes */ > add_votequorum_config_notification(object_handle); >+ /* >+ * Reload notify must be on the parent object >+ */ >+ corosync_api->object_track_start(OBJECT_PARENT_HANDLE, >+ 1, >+ NULL, >+ NULL, >+ NULL, >+ votequorum_objdb_reload_notify, >+ NULL); > corosync_api->object_find_destroy(find_handle); > > /* Start us off with one node */ >@@ -1667,14 +1680,4 @@ static void add_votequorum_config_notification( > NULL, > NULL); > >- /* >- * Reload notify must be on the parent object >- */ >- corosync_api->object_track_start(OBJECT_PARENT_HANDLE, >- 1, >- NULL, >- NULL, >- NULL, >- votequorum_objdb_reload_notify, >- NULL); > } >-- >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 838524
: 597045