From ac3a0a58a7113197849241581629b501ddd3f1da Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 8 Oct 2012 15:47:24 +1100 Subject: [PATCH] Deprecate $wgSharedDB Deprecate $wgSharedDB in response to it accidentally being used in Wikidata. It was always an ugly hack. Change-Id: I68f3bfe7afc49a49cd310b66dc03cf52507d3e58 --- includes/DefaultSettings.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.20.1