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

Change subject: Allow subclasses of BatchAntiSpoof to override the 
wfWaitForSlaves() call
......................................................................


Allow subclasses of BatchAntiSpoof to override the wfWaitForSlaves() call

So they can wait for a different database or cluster.

Change-Id: I1e90af4d87e4a38cf7ba72268542aeb2ac91d9dd
---
M maintenance/BatchAntiSpoofClass.php
1 file changed, 5 insertions(+), 1 deletion(-)

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



diff --git a/maintenance/BatchAntiSpoofClass.php 
b/maintenance/BatchAntiSpoofClass.php
index e05794c..6c611c6 100644
--- a/maintenance/BatchAntiSpoofClass.php
+++ b/maintenance/BatchAntiSpoofClass.php
@@ -40,6 +40,10 @@
                return new SpoofUser( $name );
        }
 
+       protected function waitForSlaves() {
+               wfWaitForSlaves();
+       }
+
        /**
         * Do the actual work. All child classes will need to implement this
         */
@@ -63,7 +67,7 @@
                        if ( $n % $batchSize == 0 ) {
                                $this->batchRecord( $items );
                                $items = array();
-                               wfWaitForSlaves();
+                               $this->waitForSlaves();
                        }
                }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1e90af4d87e4a38cf7ba72268542aeb2ac91d9dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AntiSpoof
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to