LocalFile::restore(): roll back the DB transaction if the file is missing
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Jun 2007 17:53:28 +0000 (17:53 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 5 Jun 2007 17:53:28 +0000 (17:53 +0000)
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;
                }