From fdb0d596bff69d56463647f555edc3504a5cc131 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 26 Aug 2008 22:35:23 +0000 Subject: [PATCH] log strange anomaly --- includes/memcached-client.php | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.20.1