Use CONN_TRX_AUTOCOMMIT instead of deprecated CONN_TRX_AUTO alias

Change-Id: I23dc7052bd1ca9a9c8fec2409f3067304745043a
This commit is contained in:
Aaron Schulz 2018-07-03 13:03:44 +01:00
parent ab5edd6ea2
commit c121d44fd0

View 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(