Merge "Force heartbeat period reset on mtcAgent process startup"

This commit is contained in:
Zuul 2020-06-24 14:58:38 +00:00 committed by Gerrit Code Review
commit fe8dd6d6f4
1 changed files with 6 additions and 2 deletions

View File

@ -85,8 +85,6 @@ int mtc_service_inbox ( nodeLinkClass * obj_ptr,
mtc_socket_type * sock_ptr,
int interface );
string my_hostname = "" ;
/** Instanciate the NodeLinkClass and pointer to it */
nodeLinkClass mtcInv ;
nodeLinkClass * mtcInv_ptr ;
@ -1544,6 +1542,12 @@ void daemon_service_run ( void )
mtcTimer_start ( mtcInv.mtcTimer_dor, mtcTimer_handler, timeout );
}
/* If mtcAgent is starting up tell the heartbeat service to heartbeat
* at its configured rate.
* This is done in case the mtcAgent was restarted while in MNFA mode
* where it had commanded the hbsAgent to heartbeat at a reduced rate. */
send_hbs_command ( mtcInv.my_hostname, MTC_RECOVER_HBS );
/* Run Maintenance service forever */
for ( ; ; )
{