looks good for commit. Regards -steve On Wed, 2008-08-20 at 06:55 +1200, angus salkeld wrote: > When making my_proc_list smaller, ensure that the > now non-used entries are zero-ed out. There are some suspect > assert's that assume that there is always 2 entries in the list. > These fail when my_proc_list is reduced to 1 entry (and the > valid [0] entry is the same as the 'unused' [1] entry). > > Author: Mark Wutzke <[EMAIL PROTECTED]> > --- > exec/totemsrp.c | 9 +++++++++ > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/exec/totemsrp.c b/exec/totemsrp.c > index 0b1f91b..1ba298e 100644 > --- a/exec/totemsrp.c > +++ b/exec/totemsrp.c > @@ -1665,6 +1665,15 @@ static void memb_state_operational_enter (struct > totemsrp_instance *instance) > instance->my_last_aru = SEQNO_START_MSG; > sq_items_release (&instance->regular_sort_queue, SEQNO_START_MSG - 1); > > + /* When making my_proc_list smaller, ensure that the > + * now non-used entries are zero-ed out. There are some suspect > + * assert's that assume that there is always 2 entries in the list. > + * These fail when my_proc_list is reduced to 1 entry (and the > + * valid [0] entry is the same as the 'unused' [1] entry). > + */ > + memset(instance->my_proc_list, 0, > + sizeof (struct srp_addr) * instance->my_proc_list_entries); > + > instance->my_proc_list_entries = instance->my_new_memb_entries; > memcpy (instance->my_proc_list, instance->my_new_memb_list, > sizeof (struct srp_addr) * instance->my_memb_entries);
_______________________________________________ Openais mailing list [email protected] https://lists.linux-foundation.org/mailman/listinfo/openais
