Use CONN_TRX_AUTOCOMMIT instead of deprecated CONN_TRX_AUTO alias
Change-Id: I23dc7052bd1ca9a9c8fec2409f3067304745043a
This commit is contained in:
parent
ab5edd6ea2
commit
c121d44fd0
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue