Add missing rollback to LocalFile::recordUpload2
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 17 Jul 2014 08:39:40 +0000 (10:39 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Thu, 17 Jul 2014 08:41:18 +0000 (10:41 +0200)
When begin was called, all returns should have rollback called to
close the transaction.

Change-Id: I8197f73fb45c2e2900db6d5e588623f9b0c46ea5

includes/filerepo/file/LocalFile.php

index a01895f..1f2defe 100644 (file)
@@ -1268,6 +1268,7 @@ class LocalFile extends File {
                # Fail now if the file isn't there
                if ( !$this->fileExists ) {
                        wfDebug( __METHOD__ . ": File " . $this->getRel() . " went missing!\n" );
+                       $dbw->rollback( __METHOD__ );
                        wfProfileOut( __METHOD__ );
 
                        return false;