osaf/services/saf/amf/amfd/sg_2n_fsm.cc |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


During SI shutdown operation, there is chance that this SI
will be in unassigned state during si delete and other SIs assigned
to the SU will be in assigned state. So, this is a valid combination
of fsm state among SUSI at a given point of time.
So, if other SIs are in assigned state, mark SU fsm state also
in AVD_SU_SI_STATE_ASGND state.

diff --git a/osaf/services/saf/amf/amfd/sg_2n_fsm.cc 
b/osaf/services/saf/amf/amfd/sg_2n_fsm.cc
--- a/osaf/services/saf/amf/amfd/sg_2n_fsm.cc
+++ b/osaf/services/saf/amf/amfd/sg_2n_fsm.cc
@@ -116,10 +116,13 @@ AVD_SU_SI_STATE avd_su_fsm_state_determi
                   can be in assigned state in transition.*/
                fsm_state = AVD_SU_SI_STATE_ASGN;
        } else if ((true == unassingned_flag) && (false == assigned_flag)) {
-               /* Rule 2. => If any one of the SUSI is unassigned, then SU 
will be said to be Unassigned.*/
+               /* Rule 3. => If any one of the SUSI is unassigned, then SU 
will be said to be Unassigned.*/
                fsm_state = AVD_SU_SI_STATE_UNASGN;
        } else if ((true == assigned_flag) && (false == unassingned_flag)) {
-               /* Rule 3. => All are assigned */ 
+               /* Rule 4. => All are assigned */ 
+               fsm_state = AVD_SU_SI_STATE_ASGND;
+       } else if ((true == assigned_flag) && (true == unassingned_flag)) {
+               /* Rule 5. => All are assigned */ 
                fsm_state = AVD_SU_SI_STATE_ASGND;
        } else {
                osafassert(0);

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to