Hi Hans, I updated comment in V2.
B.R /Thang -----Original Message----- From: Hans Nordeback <hans.nordeb...@ericsson.com> Sent: Tuesday, August 7, 2018 5:04 PM To: Thang Nguyen <thang.d.ngu...@dektech.com.au>; gary....@dektech.com.au; minh.c...@dektech.com.au Cc: opensaf-devel@lists.sourceforge.net Subject: Re: [PATCH 1/1] amf: remove assignment for NPI component with enable DisableRestart [#2879] Hi Thang, yes, you copied it from above, it looks as it is misspelled, thus -> this at both comments?/Thanks HansN On 08/07/2018 10:49 AM, Thang Nguyen wrote: > Hi Hans, > > Thanks for your review. > But that comment has already existed. > > B.R > /Thang > > -----Original Message----- > From: Hans Nordeback <hans.nordeb...@ericsson.com> > Sent: Tuesday, August 7, 2018 2:55 PM > To: thang.nguyen <thang.d.ngu...@dektech.com.au>; gary....@dektech.com.au; > minh.c...@dektech.com.au > Cc: opensaf-devel@lists.sourceforge.net > Subject: Re: [PATCH 1/1] amf: remove assignment for NPI component with enable > DisableRestart [#2879] > > Hi Thang, > > ack, code review only. Very minor comment below. /Thanks HansN > > > On 06/27/2018 07:48 PM, thang.nguyen wrote: >> With NPI component configured with saAmfCtDefDisableRestart=1. Once >> invoking restart admin op, amfnd does not remove the assignment and cause >> the crash. >> >> Remove assignment before change the pres state to TERMINATION in clc. >> --- >> src/amf/amfnd/clc.cc | 9 +++++++++ >> 1 file changed, 9 insertions(+) >> >> diff --git a/src/amf/amfnd/clc.cc b/src/amf/amfnd/clc.cc index >> c8e60e6..df8356a 100644 >> --- a/src/amf/amfnd/clc.cc >> +++ b/src/amf/amfnd/clc.cc >> @@ -2217,6 +2217,15 @@ uint32_t avnd_comp_clc_inst_restart_hdler(AVND_CB >> *cb, AVND_COMP *comp) { >> /* invoke terminate callback */ >> rc = avnd_comp_cbk_send(cb, comp, AVSV_AMF_COMP_TERM, 0, 0); >> else { >> + if (m_AVND_COMP_IS_RESTART_DIS(comp) && (comp->csi_list.n_nodes > 0)) >> { >> + /* A NPI component with DisableRestart=1. Restart admin op on su or >> this >> + comp itself, first perform reassignment for this component to other >> SU >> + then term it. At present assignment of whole SU will be gracefully >> + reassigned instead of only this comp. >> + */ > [HansN] (and also the same comment in the if stmt before this else) > > /*Send amfd to gracefully remove assignments for this SU.*/ > >> + /*Send amfd to gracefully remove assignments for thus SU.*/ >> + su_send_suRestart_recovery_msg(comp->su); >> + } >> rc = >> avnd_comp_clc_cmd_execute(cb, comp, >> AVND_COMP_CLC_CMD_TYPE_TERMINATE); >> m_AVND_COMP_REG_PARAM_RESET(cb, comp); > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Opensaf-devel mailing list Opensaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensaf-devel