Index: trunk/phase3/includes/memcached-client.php |
— | — | @@ -800,9 +800,8 @@ |
801 | 801 | if (is_resource($sock)) { |
802 | 802 | $this->_flush_read_buffer($sock); |
803 | 803 | return $sock; |
804 | | - } |
805 | | - $hv += $this->_hashfunc($tries . $realkey); |
806 | | - $hv = $hv & 0x7fffffff; // don't let this pass the limit and go negative (bug 12342) |
| 804 | + } |
| 805 | + $hv = $this->_hashfunc( $hv . $realkey ); |
807 | 806 | } |
808 | 807 | |
809 | 808 | return false; |