From: Aaron Date: Thu, 16 Aug 2012 00:43:36 +0000 (-0700) Subject: [FileBackend] Actually respend the "syncChecks" config option X-Git-Tag: 1.31.0-rc.0~22717 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=e6a1ba3fd77dddabb0314671d4d61e7bed1811d2;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Actually respend the "syncChecks" config option Change-Id: Ibb6a243b49970da7c22ff14231b04cb0ac5c64e7 --- diff --git a/includes/filebackend/FileBackendMultiWrite.php b/includes/filebackend/FileBackendMultiWrite.php index a055e088a7..f4a7eac00c 100644 --- a/includes/filebackend/FileBackendMultiWrite.php +++ b/includes/filebackend/FileBackendMultiWrite.php @@ -72,9 +72,12 @@ class FileBackendMultiWrite extends FileBackend { */ public function __construct( array $config ) { parent::__construct( $config ); - $namesUsed = array(); + $this->syncChecks = isset( $config['syncChecks'] ) + ? $config['syncChecks'] + : self::CHECK_SIZE; // Construct backends here rather than via registration // to keep these backends hidden from outside the proxy. + $namesUsed = array(); foreach ( $config['backends'] as $index => $config ) { if ( isset( $config['template'] ) ) { // Config is just a modified version of a registered backend's. @@ -108,9 +111,6 @@ class FileBackendMultiWrite extends FileBackend { if ( $this->masterIndex < 0 ) { // need backends and must have a master throw new MWException( 'No master backend defined.' ); } - $this->syncChecks = isset( $config['syncChecks'] ) - ? $config['syncChecks'] - : self::CHECK_SIZE; } /**