Mtce: Hosts in MNFA pool are reported to be in Graceful Recovery during wait period

Story: 2002882
Task: 22845

Change-Id: Icbdf21d51f4b41192ed49f40bbe76f462e5aaba9
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Eric MacDonald 2018-06-08 10:03:16 -04:00 committed by Jack Ding
parent 23d9dd711c
commit f649c5b9b4
1 changed files with 5 additions and 0 deletions

View File

@ -112,6 +112,8 @@ void nodeLinkClass::mnfa_add_host ( struct nodeLinkClass::node * node_ptr , ifac
added = true ;
mnfa_awol_list.push_back(node_ptr->hostname);
mnfa_awol_list.unique();
if ( node_ptr->task != MTC_TASK_RECOVERY_WAIT )
mtcInvApi_update_task ( node_ptr, MTC_TASK_RECOVERY_WAIT );
}
else if (( mnfa_active == false ) &&
( mnfa_host_count[iface] >= mnfa_calculate_threshold( node_ptr->hostname )))
@ -227,6 +229,9 @@ void nodeLinkClass::mnfa_enter ( void )
ptr->mnfa_graceful_recovery = true ;
mnfa_awol_list.push_back(ptr->hostname);
if ( ptr->task != MTC_TASK_RECOVERY_WAIT )
mtcInvApi_update_task ( ptr, MTC_TASK_RECOVERY_WAIT );
}
if (( ptr->next == NULL ) || ( ptr == tail ))
break ;