jenkins-bot has submitted this change and it was merged.

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

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



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/259924
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib9c6f284d80a7ff6b813a925b9ce0605b59a1228
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to