Quick fix to getContainerHashLevels() comparison from r110435.
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 1 Feb 2012 04:58:19 +0000 (04:58 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 1 Feb 2012 04:58:19 +0000 (04:58 +0000)
includes/filerepo/backend/FileBackend.php

index eb9d4ae..28c1db7 100644 (file)
@@ -1531,7 +1531,7 @@ abstract class FileBackendStore extends FileBackend {
                if ( isset( $this->shardViaHashLevels[$container] ) ) {
                        $config = $this->shardViaHashLevels[$container];
                        $hashLevels = (int)$config['levels'];
-                       if ( $hashLevels == 0 || $hashLevels == 2 ) {
+                       if ( $hashLevels == 1 || $hashLevels == 2 ) {
                                $hashBase = (int)$config['base'];
                                if ( $hashBase == 16 || $hashBase == 36 ) {
                                        return array( $hashLevels, $hashBase, $config['repeat'] );