From: Tim Starling Date: Mon, 8 Oct 2012 04:47:24 +0000 (+1100) Subject: Deprecate $wgSharedDB X-Git-Tag: 1.31.0-rc.0~22105^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=ac3a0a58a7113197849241581629b501ddd3f1da;p=lhc%2Fweb%2Fwiklou.git Deprecate $wgSharedDB Deprecate $wgSharedDB in response to it accidentally being used in Wikidata. It was always an ugly hack. Change-Id: I68f3bfe7afc49a49cd310b66dc03cf52507d3e58 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 28f9aeae98..e25bc3e2c0 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1377,10 +1377,14 @@ $wgAllDBsAreLocalhost = false; * $wgSharedTables may be customized with a list of tables to share in the shared * datbase. However it is advised to limit what tables you do share as many of * MediaWiki's tables may have side effects if you try to share them. - * EXPERIMENTAL * * $wgSharedPrefix is the table prefix for the shared database. It defaults to * $wgDBprefix. + * + * @deprecated In new code, use the $wiki parameter to wfGetLB() to access + * remote databases. Using wfGetLB() allows the shared database to reside on + * separate servers to the wiki's own database, with suitable configuration + * of $wgLBFactoryConf. */ $wgSharedDB = null;