Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -3157,7 +3157,7 @@ |
3158 | 3158 | * @return null |
3159 | 3159 | */ |
3160 | 3160 | function wfWaitForSlaves( $maxLag = false, $wiki = false ) { |
3161 | | - $lb = wfGetLB(); |
| 3161 | + $lb = wfGetLB( $wiki ); |
3162 | 3162 | // bug 27975 - Don't try to wait for slaves if there are none |
3163 | 3163 | // Prevents permission error when getting master position |
3164 | 3164 | if ( $lb->getServerCount() > 1 ) { |