database: Move LoadBalancer::getConnection debugmsg to getReaderIndex
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 19 Feb 2015 21:24:26 +0000 (21:24 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 19 Feb 2015 21:24:26 +0000 (21:24 +0000)
commitada627005aa89d57dbaaece4d76ff78612dd7b1c
treeacc990ae9ec6f1c2f7084fc0197a096187d3d0bc
parent92e9409de23d04a9ecc2b9b3e635ba5c47686ef3
database: Move LoadBalancer::getConnection debugmsg to getReaderIndex

Most of the time the early $this->mReadIndex inside getReaderIndex()
should be a hit, in which case this message isn't very useful.

This one message was filling up over 60% of the build logs (496/720 lines).
> LoadBalancer::getConnection: using server  for group ''

Move it to further down in getReaderIndex() where it actually
tries and finds one.

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