From 3345b07cc034d71809062a9fa641d2ab129092ca Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 19 Jun 2015 14:49:15 +0000 Subject: [PATCH] Mutex instrumentation for troubleshooting... SVN:2.1.1[3597] --- core/mutex.class.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/mutex.class.inc.php b/core/mutex.class.inc.php index aa3c3bae3..91ad577a5 100644 --- a/core/mutex.class.inc.php +++ b/core/mutex.class.inc.php @@ -121,7 +121,11 @@ class iTopMutex $this->bLocked = true; self::$aAcquiredLocks[$this->sName]++; } - return ($res === '1'); + if (($res !== '1') && ($res !== '0')) + { + IssueLog::Error('GET_LOCK('.$this->sName.', 0) returned: '.var_export($res, true).'. Expected values are: 0, 1 or null !!'); + } + return ($res !== '0'); } /**