Instrumented the code to help in solving the "restore runing" issue. Completion of commits [3733] znd [3595] = issue an exception if something is going wrong within iTopMutex::TryLock (exceptions are correctly handled in the various places where TryLock is invoked)

SVN:trunk[3736]
This commit is contained in:
Romain Quetiez
2015-09-09 09:23:54 +00:00
parent 98150db0b4
commit 8b45928d11

View File

@@ -133,7 +133,9 @@ class iTopMutex
} }
if (($res !== '1') && ($res !== '0')) if (($res !== '1') && ($res !== '0'))
{ {
IssueLog::Error('GET_LOCK('.$this->sName.', 0) returned: '.var_export($res, true).'. Expected values are: 0, 1 or null !!'); $sMsg = 'GET_LOCK('.$this->sName.', 0) returned: '.var_export($res, true).'. Expected values are: 0, 1 or null';
IssueLog::Error($sMsg);
throw new Exception($sMsg);
} }
return ($res !== '0'); return ($res !== '0');
} }