Catrope has uploaded a new change for review.
https://gerrit.wikimedia.org/r/259946
Change subject: Fix a database connection that was not cluster-aware in Nuke
hook
......................................................................
Fix a database connection that was not cluster-aware in Nuke hook
Bug: T115695
Change-Id: Ib9c6f284d80a7ff6b813a925b9ce0605b59a1228
---
M Hooks.php
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/46/259946/1
diff --git a/Hooks.php b/Hooks.php
index a42167d..068d271 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -1856,7 +1856,8 @@
$newLimit = $limit - count( $pages );
if ( $newLimit > 0 ) {
- $dbr = wfGetDB( DB_SLAVE );
+ $dbFactory = Container::get( 'db.factory' );
+ $dbr = $dbFactory->getDB( DB_SLAVE );
$userSelect = array( 'username' =>
"IFNULL(tree_orig_user_ip, user_name)" );
$userWhere = array();
--
To view, visit https://gerrit.wikimedia.org/r/259946
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9c6f284d80a7ff6b813a925b9ce0605b59a1228
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.27.0-wmf.9
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits