2121 * @license GPL-2.0-or-later
2222 */
2323abstract class DomainDb {
24-
25- public const LOAD_GROUP_FROM_CLIENT = 'from-client ' ;
26- public const LOAD_GROUP_FROM_REPO = 'from-repo ' ;
27-
2824 private ILBFactory $ lbFactory ;
2925 private string $ domainId ;
3026 private ReplicationWaiter $ replicationWaiter ;
@@ -37,10 +33,9 @@ abstract class DomainDb {
3733 private ?SessionConsistentConnectionManager $ sessionConsistentConnectionManager = null ;
3834 private ?ConnectionManager $ connectionManager = null ;
3935
40- public function __construct ( ILBFactory $ lbFactory , string $ domainId, array $ loadGroups = [] ) {
36+ public function __construct ( ILBFactory $ lbFactory , string $ domainId ) {
4137 $ this ->lbFactory = $ lbFactory ;
4238 $ this ->domainId = $ domainId ;
43- $ this ->loadGroups = $ loadGroups ;
4439
4540 $ this ->replicationWaiter = new ReplicationWaiter (
4641 $ lbFactory ,
@@ -56,8 +51,7 @@ public function sessionConsistentConnections(): SessionConsistentConnectionManag
5651 if ( $ this ->sessionConsistentConnectionManager === null ) {
5752 $ this ->sessionConsistentConnectionManager = new SessionConsistentConnectionManager (
5853 $ this ->lbFactory ->getMainLB ( $ this ->domainId ),
59- $ this ->domainId ,
60- $ this ->loadGroups
54+ $ this ->domainId
6155 );
6256 }
6357 return $ this ->sessionConsistentConnectionManager ;
@@ -71,8 +65,7 @@ public function connections(): ConnectionManager {
7165 if ( $ this ->connectionManager === null ) {
7266 $ this ->connectionManager = new ConnectionManager (
7367 $ this ->lbFactory ->getMainLB ( $ this ->domainId ),
74- $ this ->domainId ,
75- $ this ->loadGroups
68+ $ this ->domainId
7669 );
7770 }
7871 return $ this ->connectionManager ;
0 commit comments