Make "eval.php -d 2" work again
authorTim Starling <tstarling@wikimedia.org>
Fri, 28 Apr 2017 01:50:10 +0000 (11:50 +1000)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 3 May 2017 13:49:44 +0000 (09:49 -0400)
commitdd8a939ea6cf9558f577ba7103a3ee57fc1b42a5
tree35d32ba3cb7f339b84b5922f14aec1bba3b7cbb2
parent6c936182995f038dabf71d1b558044f425e8f3ec
Make "eval.php -d 2" work again

Instead of iterating through load balancer info, just set the flag in
the master and replica connections, since that seems more robust.

Deprecate LoadBalancer::setServerInfo() and
LoadBalancer::getServerInfo(), no remaining callers in core or
in-tree extensions, I think I added the function just for this feature.

Do a service reset, since Logger instances are injected into
LoadBalancer by ServiceWiring (via MWLBFactory::applyDefaultConfig()).
Similarly CryptRand, MimeAnalyzer.

Fix the usage text for shell.php

Change-Id: I3e85a6e8cfa1243a0371cfb3ce1c18665e8c711d
RELEASE-NOTES-1.30
includes/libs/rdbms/loadbalancer/ILoadBalancer.php
includes/libs/rdbms/loadbalancer/LoadBalancer.php
maintenance/eval.php
maintenance/shell.php