Catrope has submitted this change and it was merged.
Change subject: Revert "Fix a database connection that was not cluster-aware in
Nuke hook"
......................................................................
Revert "Fix a database connection that was not cluster-aware in Nuke hook"
In order to revert 0c70f5291a82838ae4b0f53148a046fe884d955e
This reverts commit b85fcf1081d222d1e9df0edf4a539c6b4ed4cc03.
Change-Id: I6c55aff4a714d5904263c302d917cdcb8120808e
---
M Hooks.php
1 file changed, 1 insertion(+), 2 deletions(-)
Approvals:
Catrope: Verified; Looks good to me, approved
diff --git a/Hooks.php b/Hooks.php
index 068d271..a42167d 100644
--- a/Hooks.php
+++ b/Hooks.php
@@ -1856,8 +1856,7 @@
$newLimit = $limit - count( $pages );
if ( $newLimit > 0 ) {
- $dbFactory = Container::get( 'db.factory' );
- $dbr = $dbFactory->getDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_SLAVE );
$userSelect = array( 'username' =>
"IFNULL(tree_orig_user_ip, user_name)" );
$userWhere = array();
--
To view, visit https://gerrit.wikimedia.org/r/259956
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6c55aff4a714d5904263c302d917cdcb8120808e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: wmf/1.27.0-wmf.9
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits