From: Aaron Date: Tue, 15 May 2012 01:26:56 +0000 (-0700) Subject: [FileBackend] Removed likely surperflous memcached retry code. X-Git-Tag: 1.31.0-rc.0~23610 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=059823dae6dd56b273577d245ca0b02c786a1ace;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Removed likely surperflous memcached retry code. Change-Id: I934cd658d14c051f99f72d7e37e12f8646e59458 --- diff --git a/includes/filerepo/backend/FileBackendStore.php b/includes/filerepo/backend/FileBackendStore.php index 201f40f0cd..1a7bd06db3 100644 --- a/includes/filerepo/backend/FileBackendStore.php +++ b/includes/filerepo/backend/FileBackendStore.php @@ -1288,12 +1288,9 @@ abstract class FileBackendStore extends FileBackend { * @return void */ final protected function deleteContainerCache( $container ) { - for ( $attempts=1; $attempts <= 3; $attempts++ ) { - if ( $this->memCache->delete( $this->containerCacheKey( $container ) ) ) { - return; // done! - } + if ( !$this->memCache->delete( $this->containerCacheKey( $container ) ) ) { + trigger_error( "Unable to delete stat cache for container $container." ); } - trigger_error( "Unable to delete stat cache for container $container." ); } /** @@ -1380,12 +1377,9 @@ abstract class FileBackendStore extends FileBackend { * @return void */ final protected function deleteFileCache( $path ) { - for ( $attempts=1; $attempts <= 3; $attempts++ ) { - if ( $this->memCache->delete( $this->fileCacheKey( $path ) ) ) { - return; // done! - } + if ( !$this->memCache->delete( $this->fileCacheKey( $path ) ) ) { + trigger_error( "Unable to delete stat cache for file $path." ); } - trigger_error( "Unable to delete stat cache for file $path." ); } /**