From: Aaron Schulz Date: Thu, 20 Nov 2014 09:04:53 +0000 (-0800) Subject: Fixed BloomCache handling of network partitions X-Git-Tag: 1.31.0-rc.0~13232 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=140a4f9788f40c755ca9319df50be81bfa155988;p=lhc%2Fweb%2Fwiklou.git Fixed BloomCache handling of network partitions * As documented, it should return true on error, so that DB is checked if the filter is down. Change-Id: I883fafc9f5f3a84f85207de6e916f1630c78d1a4 --- diff --git a/includes/cache/bloom/BloomCache.php b/includes/cache/bloom/BloomCache.php index a15b4613ee..627f4f0db9 100644 --- a/includes/cache/bloom/BloomCache.php +++ b/includes/cache/bloom/BloomCache.php @@ -102,7 +102,7 @@ abstract class BloomCache { $status = $this->getStatus( $virtualKey ); if ( $status == false ) { wfDebug( "Could not query virtual bloom filter '$virtualKey'." ); - return null; + return true; } $useFilter = call_user_func_array(