osaf/services/saf/amf/amfd/sgproc.cc | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Amfd is not decrementing saAmfSINumCurrStandbyAssignments when
HA state is changing from Quisced to Standby during SU failover.
saAmfSINumCurrStandbyAssignments is increased when Amfd sends
assignment to Amfnd from Quisced to Standby, it need to decrement
saAmfSINumCurrStandbyAssignments if failover happens and assignment was
not successfull.
diff --git a/osaf/services/saf/amf/amfd/sgproc.cc
b/osaf/services/saf/amf/amfd/sgproc.cc
--- a/osaf/services/saf/amf/amfd/sgproc.cc
+++ b/osaf/services/saf/amf/amfd/sgproc.cc
@@ -464,7 +464,15 @@ static uint32_t sg_su_failover_func(AVD_
assignment had been sent. So decrement the
count in SI before
deleting the SUSI. */
susi->si->dec_curr_act_ass();
+ } else if ((susi->fsm == AVD_SU_SI_STATE_MODIFY) &&
+ (susi->state == SA_AMF_HA_STANDBY)) {
+ /* SUSI is undergoing standby modification. For
standby state
+ saAmfSINumCurrStandbyAssignments was
increased when standby
+ assignment had been sent. So decrement the
count in SI before
+ deleting the SUSI. */
+ susi->si->dec_curr_stdby_ass();
}
+
/* Reply to IMM for admin operation on SI */
if (susi->si->invocation != 0) {
avd_saImmOiAdminOperationResult(avd_cb->immOiHandle,
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel