ACK

Seems to be no functional change.

On tis, 2017-12-05 at 12:34 +0100, Lennart Lund wrote:
> The global smfd_dest (in cd struct) shall be restored with MDS event
> NCSMDS_UP and NCSMDS_NEW_ACTIVE (is set to 0 with event NCSMDS_DOWN)
> ---
>  src/smf/smfnd/smfnd_mds.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/src/smf/smfnd/smfnd_mds.c b/src/smf/smfnd/smfnd_mds.c
> index e9183b75a..b49f5f1bd 100644
> --- a/src/smf/smfnd/smfnd_mds.c
> +++ b/src/smf/smfnd/smfnd_mds.c
> @@ -237,6 +237,8 @@ static uint32_t mds_svc_event(struct
> ncsmds_callback_info *info)
>       MDS_CALLBACK_SVC_EVENT_INFO *svc_evt = &info->info.svc_evt;
>  
>       switch (svc_evt->i_change) {
> +     case NCSMDS_NEW_ACTIVE:
> +             LOG_NO("MDS %s: NCSMDS_NEW_ACTIVE", __FUNCTION__);
>       case NCSMDS_UP:
>               /* TODO: No lock is taken. This might be
> dangerous.*/
>               if (NCSMDS_SVC_ID_SMFA == svc_evt->i_svc_id) {
> @@ -248,7 +250,8 @@ static uint32_t mds_svc_event(struct
> ncsmds_callback_info *info)
>                       if (m_MDS_DEST_IS_AN_ADEST(svc_evt->i_dest))
>                               return NCSCC_RC_SUCCESS;
>                       cb->smfd_dest = svc_evt->i_dest;
> -                     LOG_NO("MDS %s: NCSMDS_UP i_dest = 0x%"
> PRIx64,
> +                     LOG_NO("MDS %s: NCSMDS_SVC_ID_SMFD "
> +                             "dest = 0x%" PRIx64,
>                               __FUNCTION__, svc_evt->i_dest);
>               }
>               break;
> @@ -256,7 +259,7 @@ static uint32_t mds_svc_event(struct
> ncsmds_callback_info *info)
>       case NCSMDS_DOWN:
>               /* TODO: No lock is taken. This might be
> dangerous.*/
>               /* TODO: Need to clean up the cb->cbk_list,
> otherwise there will
> -              be memory leak. For the time being we are storing
> only conut of
> +              be memory leak. For the time being we are storing
> only count of
>                agents, not the adest of agents and hence it is not
> possible to
>                clean up cbk_list.*/
>               if (NCSMDS_SVC_ID_SMFA == svc_evt->i_svc_id) {
------------------------------------------------------------------------------
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

Reply via email to