aboutsummaryrefslogtreecommitdiffstats
path: root/includes/libs/rdbms/ServerInfo.php
Commit message (Collapse)AuthorAgeFilesLines
* Use explicit nullable type on parameter argumentsUmherirrender2024-10-161-1/+1
| | | | | | | | | | | Implicitly marking parameter $... as nullable is deprecated in php8.4, the explicit nullable type must be used instead Created with autofix from Ide15839e98a6229c22584d1c1c88c690982e1d7a Break one long line in SpecialPage.php Bug: T376276 Change-Id: I807257b2ba1ab2744ab74d9572c9c3d3ac2a968e
* rdbms: only count replication sources toward "masterConns" in ↵Aaron Schulz2024-09-131-1/+1
| | | | | | | getServerConnection() Bug: T374534 Change-Id: Icce3887db9903cf512f7d32d45e1c50e468730c4
* rdbms: various fixes to LoadBalancer::reconfigureAaron Schulz2023-03-131-17/+19
| | | | | | | | | | | | | | | | | | | | Use server names to handle the case where server indexes get shifted around due to the depooling or provisioning of a server. Previously, loads could be assigned to a wrong server, assigned to a server that was depooled, or assigned to a server that is to new to appear in the current "servers" array. This would mean that getReaderIndex() or getLagTimes() could trigger exceptions. Only change loads for depooled servers. Update the loads of other servers to the current loads only makes sense in the context of using all the current servers. This does not apply to reconfigure() since it does not see newly pooled servers (for simplicity). Handle servers depooled only from custom query groups. Bug: T322156 Change-Id: I9f710aa32f5d5b74796bb80a8426a5f653b8e4d3
* rdbms: Rename internal ServerInfoHolder to ServerInfoTimo Tijhof2023-03-071-0/+171
Follows-up I177d57e2e34aea (3909c1440a). Change-Id: Ic7332abc5512a74f62ff01e1bd9566047b81cb59