Add missing rollback to LocalFile::recordUpload2

When begin was called, all returns should have rollback called to
close the transaction.

Change-Id: I8197f73fb45c2e2900db6d5e588623f9b0c46ea5
This commit is contained in:
umherirrender 2014-07-17 10:39:40 +02:00
parent c9a2a365f4
commit d5d37cd034

View 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;