Commit d8dc78ba authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #247 in ZP/z-push from...

Merge pull request #247 in ZP/z-push from bugfix/ZP-937-memcache-logs-blockmutex-warnings to develop

* commit '9e530cde':
  ZP-937 Warn on mutex block only if it takes longer than 50ms.
parents 0b2e8e52 9e530cde
...@@ -193,7 +193,7 @@ class IpcMemcachedProvider implements IIpcProvider { ...@@ -193,7 +193,7 @@ class IpcMemcachedProvider implements IIpcProvider {
return false; 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)); ZLog::Write(LOGLEVEL_WARN, sprintf("IpcMemcachedProvider->BlockMutex() mutex aquired after waiting for %sms for type: %s", ($n*MEMCACHED_BLOCK_WAIT), $this->type));
} }
return true; 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