if (!$this->_active)
return false;
- $this->stats['get_multi']++;
+ @$this->stats['get_multi']++;
$sock_keys = array();
foreach ($keys as $key)
$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)) {
$this->_flush_read_buffer($sock);
return $sock;
- }
- $hv += $this->_hashfunc($tries . $realkey);
+ }
+ $hv = $this->_hashfunc( $hv . $realkey );
}
return false;