If a component is configured to restart, instead of failover, on failure,
the previous transition descriptor is passed to the CSI set callback after
the restart.

The transition descriptor is not reset by amfnd in this case.

Always reset the transition descriptor to NEW_ASSIGN during a reassignment
due to restart.
---
 src/amf/amfnd/comp.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amf/amfnd/comp.cc b/src/amf/amfnd/comp.cc
index a12171c28..10c77a462 100644
--- a/src/amf/amfnd/comp.cc
+++ b/src/amf/amfnd/comp.cc
@@ -1448,6 +1448,9 @@ uint32_t avnd_comp_csi_reassign(AVND_CB *cb, AVND_COMP 
*comp) {
       m_AVND_COMP_CSI_CURR_ASSIGN_STATE_SET(
           curr, AVND_COMP_CSI_ASSIGN_STATE_ASSIGNING);

+      // reset the transition descriptor
+      curr->trans_desc = SA_AMF_CSI_NEW_ASSIGN;
+
       /* invoke the callback */
       rc = avnd_comp_cbk_send(cb, curr->comp, AVSV_AMF_CSI_SET, 0, curr);
     }
--
2.20.1


-----------------------------------------------------------------------------------------------------------------------
Notice: This e-mail together with any attachments may contain information of 
Ribbon Communications Inc. that
is confidential and/or proprietary for the sole use of the intended recipient.  
Any review, disclosure, reliance or
distribution by others or forwarding without express permission is strictly 
prohibited.  If you are not the intended
recipient, please notify the sender immediately and then delete all copies, 
including any attachments.
-----------------------------------------------------------------------------------------------------------------------

_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to