From e121a061036f02df0b568eb640d9a19681c4c622 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 4 Aug 2007 10:49:10 +0000 Subject: [PATCH] Move $wgAlternateMaster to core DefaultSettings.php from MakeSysop, since it's used now in some more maintenance scripts and will be used by other extensions soon --- includes/DefaultSettings.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 241f63f7ff..a77c26d223 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -645,6 +645,19 @@ $wgDBmysql5 = false; */ $wgLocalDatabases = array(); +/** + * For multi-wiki clusters with multiple master servers; if an alternate + * is listed for the requested database, a connection to it will be opened + * instead of to the current wiki's regular master server when cross-wiki + * data operations are done from here. + * + * Requires that the other server be accessible by network, with the same + * username/password as the primary. + * + * eg $wgAlternateMaster['enwiki'] = 'ariel'; + */ +$wgAlternateMaster = array(); + /** * Object cache settings * See Defines.php for types -- 2.20.1