Move variable definitions near to where they are used
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sat, 15 Mar 2014 13:34:52 +0000 (14:34 +0100)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sat, 15 Mar 2014 13:34:52 +0000 (14:34 +0100)
commit85a7f625de461a2aba166854fbd6dee41ddb0454
treec2a84d56f68807f10899f9813f577479bb40cad6
parent62710b6d8286d57340216ab67f05fd83058ebfef
Move variable definitions near to where they are used

In LoadBalancer::reuseConnection(), if the condition
"$serverIndex === null || $refCount === null" is met,
then those variables will not be used. So only define
them when they will readlly be used.

Change-Id: Ifbd4131f40d3babe733b8723d0d29d39890bb309
includes/db/LoadBalancer.php