Mtce: Re-add explicit request for mtcAlive in Graceful Recovery handler

Story: 2002882
Task: 22845

Change-Id: Ib814416e46f988b3342a2da7b31e6e7273684c9e
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Eric MacDonald 2018-06-08 09:51:19 -04:00 committed by Jack Ding
parent 8b4cb5f73d
commit ed1410a736
1 changed files with 3 additions and 1 deletions

View File

@ -1516,7 +1516,7 @@ int nodeLinkClass::recovery_handler ( struct nodeLinkClass::node * node_ptr )
/* Purge this hosts work queues */
mtcCmd_workQ_purge ( node_ptr );
mtcCmd_doneQ_purge ( node_ptr );
node_ptr->mtcAlive_gate = false ;
node_ptr->http_retries_cur = 0 ;
node_ptr->unknown_health_reported = false ;
@ -1602,6 +1602,8 @@ int nodeLinkClass::recovery_handler ( struct nodeLinkClass::node * node_ptr )
ilog ("%s requesting mtcAlive with %d sec timeout\n",
node_ptr->hostname.c_str(), loc_recovery_timeout);
send_mtc_cmd ( node_ptr->hostname, MTC_REQ_MTCALIVE, MGMNT_INTERFACE );
recoveryStageChange ( node_ptr, MTC_RECOVERY__REQ_MTCALIVE_WAIT ) ;
break ;