Make sure DBLoadBalancerFactory service is not disabled
authorRazeSoldier <razesoldier@outlook.com>
Wed, 25 Sep 2019 14:54:13 +0000 (22:54 +0800)
committerReedy <reedy@wikimedia.org>
Sun, 1 Dec 2019 18:00:36 +0000 (18:00 +0000)
commit9579fb0605dd490f55e7d2bec5216951ada6dde8
tree67093169b0b0d1ba2bdd5ca5cd1959254c73e3fd
parentd94d7de9b34be3ff0ebb075432a8f73780b528f2
Make sure DBLoadBalancerFactory service is not disabled

After b873e929, when the CLI installation failed, the script will throw
a ServiceDisabledException.
This is because the installer disables DBLoadBalancerFactory service
during instantiation and throws the exception because the installation
failed to restore the service.
So I check if the service is enabled before try commit
the master changes.

Bug: T229601
Change-Id: Ia7589d14ee55bcb03a64856b6dd2c81d8bda783c
(cherry picked from commit eadde762b03ed94c687788ed3e0d9c65e5046fb2)
maintenance/doMaintenance.php