LocalFile::restore(): roll back the DB transaction if the file is missing
[lhc/web/wiklou.git] / includes / filerepo / LocalFile.php
index cd0a331..418d56a 100644 (file)
@@ -1261,6 +1261,7 @@ class LocalFile extends File
                } catch( MWException $e ) {
                        wfDebug( __METHOD__." caught error, aborting\n" );
                        $transaction->rollback();
+                       $dbw->rollback();
                        throw $e;
                }