Mtce: Fix logic compare looking for host that did not reboot

Story: 2002882
Task: 22845

Change-Id: I0ffab3476c32b0947f0cd44796e257ee4bb93029
Signed-off-by: Jack Ding <jack.ding@windriver.com>
This commit is contained in:
Eric MacDonald 2018-06-08 12:12:11 -04:00 committed by Jack Ding
parent e5cbfce297
commit cb2d1b3bfc
1 changed files with 2 additions and 1 deletions

View File

@ -1926,7 +1926,8 @@ int nodeLinkClass::recovery_handler ( struct nodeLinkClass::node * node_ptr )
* the host has not reset yet we have disabled services
* then now we need to reset the host to prevet VM duplication
* by forcing a full enable */
if ( node_ptr->uptime_save & ( node_ptr->uptime >= node_ptr->uptime_save ) )
if (( node_ptr->uptime_save != 0 ) &&
( node_ptr->uptime >= node_ptr->uptime_save ))
{
ilog ("%s regained MTCALIVE from host that did not reboot (uptime:%d)\n",
node_ptr->hostname.c_str(), node_ptr->uptime );