| daniel added a comment. |
MY preferred solution would be to introduce a "ConnectionManager" or "ConnectionHandle" interface into core. WikibaseClient has ConsistentReadConnectionManager that would be one possible implementation. Setting the desired db groupcould easily be added to that.
Relevant code that currently takes a LoadBalancer or a DatabaseBase, or that calls wfGetDB or wfGetLB, would need to be changed to take a ConnectionManager.
I think this would be the cleanest solution. I have actually often wished for having such a class in core.
TASK DETAIL
EMAIL PREFERENCES
To: daniel
Cc: thiemowmde, Addshore, aaron, Aklapper, Smalyshev, Lydia_Pintscher, jcrespo, aude, daniel, hoo, D3r1ck01, Izno, Wikidata-bugs, Mbch331
Cc: thiemowmde, Addshore, aaron, Aklapper, Smalyshev, Lydia_Pintscher, jcrespo, aude, daniel, hoo, D3r1ck01, Izno, Wikidata-bugs, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
