The doDeleteArticleReal() call does BEGIN but not COMMIT
and the LocalFile::delete() does no trx commands because
trxLevel() > 0, so the COMMIT here is needed as things are.
This reverts commit
985a8f721459ebea1dc5a0daa178295eec8cf444.
Change-Id: I72529965ae9fe41641f22af12a40ec13ff65a2c1
// or revision is missing, so check for isOK() rather than isGood()
if ( $deleteStatus->isOK() ) {
$status = $file->delete( $reason, $suppress, $user );
- if ( !$status->isOK() ) {
+ if ( $status->isOK() ) {
+ $dbw->commit( __METHOD__ );
+ } else {
$dbw->rollback( __METHOD__ );
}
}