From 6683eeca5b794e16b9edc2dba42d31c75ed3c36f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 24 Sep 2008 17:28:55 +0000 Subject: [PATCH] Another fix for r41086. Don't keep retrying server if connection fails. --- includes/ExternalStore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ExternalStore.php b/includes/ExternalStore.php index 34570e2df2..272bcfc000 100644 --- a/includes/ExternalStore.php +++ b/includes/ExternalStore.php @@ -92,12 +92,12 @@ class ExternalStore { $url = $store->store( $params, $data ); // Try to save the object } catch ( DBConnectionError $error ) { $url = false; - unset( $tryStores[$index] ); // Don't try this one again! - $tryStores = array_values( $tryStores ); // Must have consecutive keys } if ( $url ) { return $url; // Done! } else { + unset( $tryStores[$index] ); // Don't try this one again! + $tryStores = array_values( $tryStores ); // Must have consecutive keys wfDebugLog( 'ExternalStorage', "Unable to store text to external storage $storeUrl" ); } } -- 2.20.1