From d010928d5a76a75abf3fd8ef0234c823eca73f8a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 1 Feb 2012 04:58:19 +0000 Subject: [PATCH] Quick fix to getContainerHashLevels() comparison from r110435. --- includes/filerepo/backend/FileBackend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/backend/FileBackend.php b/includes/filerepo/backend/FileBackend.php index eb9d4ae176..28c1db7ec0 100644 --- a/includes/filerepo/backend/FileBackend.php +++ b/includes/filerepo/backend/FileBackend.php @@ -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'] ); -- 2.20.1