From 11964dc236f2e2831080ff39896d0b18874dd9a9 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 5 Jun 2007 17:53:28 +0000 Subject: [PATCH] LocalFile::restore(): roll back the DB transaction if the file is missing --- includes/filerepo/LocalFile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index cd0a331ebd..418d56afcc 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -1261,6 +1261,7 @@ class LocalFile extends File } catch( MWException $e ) { wfDebug( __METHOD__." caught error, aborting\n" ); $transaction->rollback(); + $dbw->rollback(); throw $e; } -- 2.20.1