Added a hasMasterConnection() method to LoadBalancer
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 19 Jul 2014 23:19:43 +0000 (16:19 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 19 Jul 2014 23:19:43 +0000 (16:19 -0700)
commit92e0d0f92718ee24d5f376b22b07162c0be2bc65
treeaa4f9341befd89c33fdc87fe7a24fda988b28bea
parenteeead079979e37e276e2b5411dd82b67988ad357
Added a hasMasterConnection() method to LoadBalancer

* Made wfWaitForSlaves() use it instead of using isOpen() incorrectly.
  The index for the master is 0, not DB_MASTER. This fixes 2979f0b6.

Change-Id: I48e5c7f10d8fe6b8bf6e830282352e3238b5d3ae
includes/GlobalFunctions.php
includes/db/LoadBalancer.php