Use CONN_TRX_AUTOCOMMIT instead of deprecated CONN_TRX_AUTO alias
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Jul 2018 12:03:44 +0000 (13:03 +0100)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 3 Jul 2018 12:03:44 +0000 (13:03 +0100)
Change-Id: I23dc7052bd1ca9a9c8fec2409f3067304745043a

includes/Storage/DerivedPageDataUpdater.php

index cc72754..8da812a 100644 (file)
@@ -1310,7 +1310,7 @@ class DerivedPageDataUpdater implements IDBAccessObject {
                                        // stale data from REPEATABLE-READ snapshots.
                                        // HACK: But don't use a fresh connection in unit tests, since it would not have
                                        // the fake tables. This should be handled by the LoadBalancer!
-                                       $flags = defined( 'MW_PHPUNIT_TEST' ) ? 0 : $lb::CONN_TRX_AUTO;
+                                       $flags = defined( 'MW_PHPUNIT_TEST' ) ? 0 : $lb::CONN_TRX_AUTOCOMMIT;
                                        $db = $lb->getConnectionRef( $dbIndex, [], $this->getWikiId(), $flags );
 
                                        return 1 + (int)$db->selectField(