summaryrefslogtreecommitdiff
path: root/maintenance/mcc.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/mcc.php')
-rw-r--r--maintenance/mcc.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/maintenance/mcc.php b/maintenance/mcc.php
index 93b6ec18..b0302ab2 100644
--- a/maintenance/mcc.php
+++ b/maintenance/mcc.php
@@ -3,8 +3,7 @@
* memcached diagnostic tool
*
* @todo document
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*/
/** */
@@ -112,7 +111,11 @@ do {
case 'server':
$res = $mcc->get( $args[0] );
- print $mcc->_buckets[$mcc->_hashfunc( $args[0] ) % $mcc->_bucketcount] . "\n";
+ $hv = $mcc->_hashfunc( $args[0] );
+ for ( $i = 0; $i < 3; $i++ ) {
+ print $mcc->_buckets[$hv % $mcc->_bucketcount] . "\n";
+ $hv += $mcc->_hashfunc( $i . $args[0] );
+ }
break;
case 'set':