Commit 9e530cde authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-937 Warn on mutex block only if it takes longer than 50ms.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 8cabbd51
......@@ -193,7 +193,7 @@ class IpcMemcachedProvider implements IIpcProvider {
return false;
}
}
if ($n) {
if ($n*MEMCACHED_BLOCK_WAIT > 50) {
ZLog::Write(LOGLEVEL_WARN, sprintf("IpcMemcachedProvider->BlockMutex() mutex aquired after waiting for %sms for type: %s", ($n*MEMCACHED_BLOCK_WAIT), $this->type));
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment