From 4802134f1065c4a92f3e99e65e03509187e6c9aa Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 19 Nov 2011 16:31:42 +0000 Subject: [PATCH] closing a store is only available for CDB type follow up r103684 --- includes/LocalisationCache.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index 828ed1c749..f22aa6c73e 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -358,7 +358,10 @@ class LocalisationCache { $deps = $this->store->get( $code, 'deps' ); $keys = $this->store->get( $code, 'list', 'messages' ); $preload = $this->store->get( $code, 'preload' ); - $this->store->close( $code ); + if( $this->store instanceof LCStore_CDB ) { + // Dont leave open filehandler behind after being called + $this->store->close( $code ); + } // Different keys may expire separately, at least in LCStore_Accel if ( $deps === null || $keys === null || $preload === null ) { wfDebug( __METHOD__."($code): cache missing, need to make one\n" ); -- 2.20.1