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:
parent
c9a2a365f4
commit
d5d37cd034
1 changed files with 1 additions and 0 deletions
|
|
@ -1268,6 +1268,7 @@ class LocalFile extends File {
|
||||||
# Fail now if the file isn't there
|
# Fail now if the file isn't there
|
||||||
if ( !$this->fileExists ) {
|
if ( !$this->fileExists ) {
|
||||||
wfDebug( __METHOD__ . ": File " . $this->getRel() . " went missing!\n" );
|
wfDebug( __METHOD__ . ": File " . $this->getRel() . " went missing!\n" );
|
||||||
|
$dbw->rollback( __METHOD__ );
|
||||||
wfProfileOut( __METHOD__ );
|
wfProfileOut( __METHOD__ );
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue