From 7cb764095f2f9187fb858a3fb0940d57aeb72cbd Mon Sep 17 00:00:00 2001 From: Peter Gehres Date: Wed, 20 Mar 2013 14:21:16 -0700 Subject: [PATCH] Fix wfWaitForSlaves() so the $wiki parameter actually works correctly Change-Id: I1f3da5921f2d724e10c448700ea8b958ff159451 --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 99f5eb5a8f..017ab7d91b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -3655,7 +3655,7 @@ function wfWaitForSlaves( $maxLag = false, $wiki = false ) { // bug 27975 - Don't try to wait for slaves if there are none // Prevents permission error when getting master position if ( $lb->getServerCount() > 1 ) { - $dbw = $lb->getConnection( DB_MASTER ); + $dbw = $lb->getConnection( DB_MASTER, array(), $wiki ); $pos = $dbw->getMasterPos(); $lb->waitForAll( $pos ); } -- 2.20.1