r110462 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110461‎ | r110462 | r110463 >
Date:04:58, 1 February 2012
Author:aaron
Status:ok
Tags:
Comment:
Quick fix to getContainerHashLevels() comparison from r110435.
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/FileBackend.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/FileBackend.php
@@ -1531,7 +1531,7 @@
15321532 if ( isset( $this->shardViaHashLevels[$container] ) ) {
15331533 $config = $this->shardViaHashLevels[$container];
15341534 $hashLevels = (int)$config['levels'];
1535 - if ( $hashLevels == 0 || $hashLevels == 2 ) {
 1535+ if ( $hashLevels == 1 || $hashLevels == 2 ) {
15361536 $hashBase = (int)$config['base'];
15371537 if ( $hashBase == 16 || $hashBase == 36 ) {
15381538 return array( $hashLevels, $hashBase, $config['repeat'] );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r110435Expanded 'shardViaHashLevels' config var in FileBackendStore to be able to re...aaron21:52, 31 January 2012

Status & tagging log