dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab5edd6
)
Use CONN_TRX_AUTOCOMMIT instead of deprecated CONN_TRX_AUTO alias
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 3 Jul 2018 12:03:44 +0000
(13:03 +0100)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 3 Jul 2018 12:03:44 +0000
(13:03 +0100)
Change-Id: I23dc7052bd1ca9a9c8fec2409f3067304745043a
includes/Storage/DerivedPageDataUpdater.php
patch
|
blob
|
history
diff --git
a/includes/Storage/DerivedPageDataUpdater.php
b/includes/Storage/DerivedPageDataUpdater.php
index
cc72754
..
8da812a
100644
(file)
--- 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_AUTO
COMMIT
;
$db = $lb->getConnectionRef( $dbIndex, [], $this->getWikiId(), $flags );
return 1 + (int)$db->selectField(