Merge "rdbms: make cancelAtomic() handle callbacks and work with DBO_TRX"
[lhc/web/wiklou.git] / includes / libs / rdbms / database / Database.php
index 1af94cc..896774f 100644 (file)
@@ -1186,8 +1186,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
                                        } else {
                                                # Nothing prior was there to lose from the transaction,
                                                # so just roll it back.
-                                               $this->doRollback( __METHOD__ . " ($fname)" );
-                                               $this->trxStatus = self::STATUS_TRX_OK;
+                                               $this->rollback( __METHOD__ . " ($fname)", self::FLUSHING_INTERNAL );
                                        }
                                        $this->trxStatusIgnoredCause = null;
                                } else {