Bsitu has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/62212


Change subject: Fix the maintenance script
......................................................................

Fix the maintenance script

It should wait for slave during each batch update

Change-Id: Iba8b172016317236981c11b4f9af9bb1723516ec
---
M maintenance/copyExistingEmailPreference.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo 
refs/changes/12/62212/1

diff --git a/maintenance/copyExistingEmailPreference.php 
b/maintenance/copyExistingEmailPreference.php
index 7b65102..3939583 100644
--- a/maintenance/copyExistingEmailPreference.php
+++ b/maintenance/copyExistingEmailPreference.php
@@ -56,6 +56,7 @@
                        if( $total < $users ) {
                                $this->output( "Total Updated: $total\n" );
                        }
+                       wfWaitForSlaves();
                }
                $this->output( "Done. Final total: $users\n" );
        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba8b172016317236981c11b4f9af9bb1723516ec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Bsitu <[email protected]>

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

Reply via email to