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

Change subject: Fix for purging scores
......................................................................


Fix for purging scores

Bug: T143798
Change-Id: Ia4bed409cf1836acaccf2e75c5b68b35f821f17b
---
M includes/Cache.php
1 file changed, 3 insertions(+), 1 deletion(-)

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



diff --git a/includes/Cache.php b/includes/Cache.php
index 5061d96..e5baebf 100644
--- a/includes/Cache.php
+++ b/includes/Cache.php
@@ -90,6 +90,8 @@
                $dbr = \wfGetDB( DB_SLAVE );
                $dbw = \wfGetDB( DB_MASTER );
 
+               $tables = [ 'ores_classification', 'ores_model' ];
+
                $join_conds = [ 'ores_model' =>
                        [ 'LEFT JOIN', 'oresm_id = oresc_model' ] ];
                $conditions = [
@@ -100,7 +102,7 @@
                }
 
                do {
-                       $ids = $dbr->selectFieldValues( 'ores_classification',
+                       $ids = $dbr->selectFieldValues( $tables,
                                'oresc_rev',
                                $conditions,
                                __METHOD__,

-- 
To view, visit https://gerrit.wikimedia.org/r/306691
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia4bed409cf1836acaccf2e75c5b68b35f821f17b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: wmf/1.28.0-wmf.16
Gerrit-Owner: Ladsgroup <[email protected]>
Gerrit-Reviewer: Thcipriani <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to