From 059823dae6dd56b273577d245ca0b02c786a1ace Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 14 May 2012 18:26:56 -0700 Subject: [PATCH] [FileBackend] Removed likely surperflous memcached retry code. Change-Id: I934cd658d14c051f99f72d7e37e12f8646e59458 --- includes/filerepo/backend/FileBackendStore.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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." ); } /** -- 2.20.1