r60695 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60694‎ | r60695 | r60696 >
Date:22:02, 5 January 2010
Author:catrope
Status:ok
Tags:
Comment:
wmf-deployment: Merge r58814 from trunk (fix wfWaitForSlaves() for foreign DBs, needed for GlobalUsage refresh script)
Modified paths:
  • /branches/wmf-deployment/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/includes/GlobalFunctions.php
@@ -3164,11 +3164,12 @@
31653165 * to use this outside maintenance scripts in its present form.
31663166 *
31673167 * @param $maxLag Integer
 3168+ * @param $wiki mixed Wiki identifier accepted by wfGetLB
31683169 * @return null
31693170 */
3170 -function wfWaitForSlaves( $maxLag ) {
 3171+function wfWaitForSlaves( $maxLag, $wiki = false ) {
31713172 if( $maxLag ) {
3172 - $lb = wfGetLB();
 3173+ $lb = wfGetLB( $wiki );
31733174 list( $host, $lag ) = $lb->getMaxLag();
31743175 while( $lag > $maxLag ) {
31753176 $name = @gethostbyaddr( $host );
Property changes on: branches/wmf-deployment/includes/GlobalFunctions.php
___________________________________________________________________
Name: svn:mergeinfo
31763177 + /branches/REL1_15/phase3/includes/GlobalFunctions.php:51646
/branches/wmf-deployment/includes/GlobalFunctions.php:53381
/trunk/phase3/includes/GlobalFunctions.php:56213,56215-56216,56218,56334-56336,56338,56340,56343,56345,56347,56350,57154-57447,57530,57541,57602,57916,58151,58219,58633,58814,58816

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r58814Introduce $wiki parameter to wfWaitForSlaves in order to be able to wait for ...btongminh11:38, 9 November 2009

Status & tagging log