From c121d44fd0c8395356c06b44429d4077178dbba9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 3 Jul 2018 13:03:44 +0100 Subject: [PATCH] Use CONN_TRX_AUTOCOMMIT instead of deprecated CONN_TRX_AUTO alias Change-Id: I23dc7052bd1ca9a9c8fec2409f3067304745043a --- includes/Storage/DerivedPageDataUpdater.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Storage/DerivedPageDataUpdater.php b/includes/Storage/DerivedPageDataUpdater.php index cc727549f0..8da812aa84 100644 --- a/includes/Storage/DerivedPageDataUpdater.php +++ b/includes/Storage/DerivedPageDataUpdater.php @@ -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( -- 2.20.1