Upgrade error logging when implicit transactions are committed early
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 10 Jul 2016 23:39:31 +0000 (16:39 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 10 Jul 2016 23:39:31 +0000 (16:39 -0700)
Change-Id: If976a405cd1374e70fc9af76e47b9a3f12c354c9

includes/db/Database.php

index cfdf382..d4edf01 100644 (file)
@@ -2606,7 +2606,7 @@ abstract class DatabaseBase implements IDatabase {
                        } else {
                                // The transaction was automatic and has done write operations
                                if ( $this->mTrxDoneWrites ) {
-                                       wfDebug( "$fname: Automatic transaction with writes in progress" .
+                                       wfLogDBError( "$fname: Automatic transaction with writes in progress" .
                                                " (from {$this->mTrxFname}), performing implicit commit!\n"
                                        );
                                }