Upgrade unmatched explicit commit() of DBO_TRX to an exception
[lhc/web/wiklou.git] / includes / db / Database.php
index ba25183..c591f3c 100644 (file)
@@ -2718,7 +2718,10 @@ abstract class DatabaseBase implements IDatabase {
                                wfWarn( "$fname: No transaction to commit, something got out of sync!" );
                                return; // nothing to do
                        } elseif ( $this->mTrxAutomatic ) {
-                               wfWarn( "$fname: Explicit commit of implicit transaction. Something may be out of sync!" );
+                               throw new DBUnexpectedError(
+                                       $this,
+                                       "$fname: Explicit commit of implicit transaction."
+                               );
                        }
                }