From: Aaron Schulz Date: Tue, 26 Aug 2008 22:35:23 +0000 (+0000) Subject: log strange anomaly X-Git-Tag: 1.31.0-rc.0~45636 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=fdb0d596bff69d56463647f555edc3504a5cc131;p=lhc%2Fweb%2Fwiklou.git log strange anomaly --- diff --git a/includes/memcached-client.php b/includes/memcached-client.php index 6bd1838739..27bdc9933d 100644 --- a/includes/memcached-client.php +++ b/includes/memcached-client.php @@ -795,6 +795,11 @@ class memcached $realkey = is_array($key) ? $key[1] : $key; for ($tries = 0; $tries<20; $tries++) { + // temp logging for strange bug + if( !isset($this->_buckets[$hv % $this->_bucketcount]) ) { + wfDebugLog( "memcached", "Invalid bucket key '". $hv % $this->_bucketcount . "' given!" ); + continue; + } $host = $this->_buckets[$hv % $this->_bucketcount]; $sock = $this->sock_to_host($host); if (is_resource($sock)) {