From 706e6c56ff16087d6450b89a0b2179a4a43af197 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 19 Jun 2015 14:48:13 +0000 Subject: [PATCH] Mutex instrumentation for troubleshooting... SVN:2.1.0[3596] --- 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 8c7a7a9181..82e67dd609 100644 --- a/core/mutex.class.inc.php +++ b/core/mutex.class.inc.php @@ -131,7 +131,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'); } /**