From 8b45928d1158cf0b77150cc35bcc7d662c3189e6 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Wed, 9 Sep 2015 09:23:54 +0000 Subject: [PATCH] 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] --- core/mutex.class.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/mutex.class.inc.php b/core/mutex.class.inc.php index 82e67dd60..ea459d0bf 100644 --- a/core/mutex.class.inc.php +++ b/core/mutex.class.inc.php @@ -133,7 +133,9 @@ class iTopMutex } 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'); }