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 159909 Details for
Bug 249509
ring id not stored properly in all cases
[?]
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]
patch to fix the problem.
ring_id_store_properly.patch (text/plain), 2.39 KB, created by
Steven Dake
on 2007-07-25 09:48:31 UTC
(
hide
)
Description:
patch to fix the problem.
Filename:
MIME Type:
Creator:
Steven Dake
Created:
2007-07-25 09:48:31 UTC
Size:
2.39 KB
patch
obsolete
>Index: totemsrp.c >=================================================================== >--- totemsrp.c (revision 1400) >+++ totemsrp.c (working copy) >@@ -551,7 +551,8 @@ > int fcc_mcasts_allowed); > static void messages_free (struct totemsrp_instance *instance, unsigned int token_aru); > >-static void memb_ring_id_store (struct totemsrp_instance *instance); >+static void memb_ring_id_set_and_store (struct totemsrp_instance *instance); >+ struct memb_ring_id *ring_id); > static void memb_state_commit_token_update (struct totemsrp_instance *instance, struct memb_commit_token *commit_token); > static void memb_state_commit_token_target_set (struct totemsrp_instance *instance, struct memb_commit_token *commit_token); > static int memb_state_commit_token_send (struct totemsrp_instance *instance, struct memb_commit_token *memb_commit_token); >@@ -1711,10 +1712,10 @@ > > memb_state_commit_token_target_set (instance, commit_token); > >+ memb_ring_id_set_and_store (instance, &commit_token->ring_id); >+ > memb_state_commit_token_send (instance, commit_token); > >- memcpy (&instance->my_ring_id, &commit_token->ring_id, >- sizeof (struct memb_ring_id)); > instance->token_ring_id_seq = instance->my_ring_id.seq; > > poll_timer_delete (instance->totemsrp_poll_handle, instance->memb_timer_state_gather_join_timeout); >@@ -1926,7 +1927,6 @@ > > reset_token_timeout (instance); // REVIEWED > reset_token_retransmit_timeout (instance); // REVIEWED >- memb_ring_id_store (instance); > > instance->memb_state = MEMB_STATE_RECOVERY; > return; >@@ -2835,6 +2835,7 @@ > } > res = write (fd, &memb_ring_id->seq, sizeof (unsigned long long)); > assert (res == sizeof (unsigned long long)); >+ fsync (fd); > close (fd); > } else { > log_printf (instance->totemsrp_log_level_warning, >@@ -2846,13 +2847,16 @@ > instance->token_ring_id_seq = memb_ring_id->seq; > } > >-static void memb_ring_id_store ( >- struct totemsrp_instance *instance) >+static void memb_ring_id_set_and_store ( >+ struct totemsrp_instance *instance, >+ struct memb_ring_id *ring_id) > { > char filename[256]; > int fd; > int res; > >+ memcpy (&instance->my_ring_id, ring_id, sizeof (struct memb_ring_id)); >+ > sprintf (filename, "%s/ringid_%s", > rundir, totemip_print (&instance->my_id.addr[0])); > >@@ -2872,6 +2876,7 @@ > //assert (fd > 0); > res = write (fd, &instance->my_ring_id.seq, sizeof (unsigned long long)); > assert (res == sizeof (unsigned long long)); >+ fsync (fd); > close (fd); > } >
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 249509
: 159909