r24573 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24572‎ | r24573 | r24574 >
Date:10:49, 4 August 2007
Author:brion
Status:old
Tags:
Comment:
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
Modified paths:
  • /trunk/extensions/Makesysop/SpecialMakesysop.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -646,6 +646,19 @@
647647 $wgLocalDatabases = array();
648648
649649 /**
 650+ * For multi-wiki clusters with multiple master servers; if an alternate
 651+ * is listed for the requested database, a connection to it will be opened
 652+ * instead of to the current wiki's regular master server when cross-wiki
 653+ * data operations are done from here.
 654+ *
 655+ * Requires that the other server be accessible by network, with the same
 656+ * username/password as the primary.
 657+ *
 658+ * eg $wgAlternateMaster['enwiki'] = 'ariel';
 659+ */
 660+$wgAlternateMaster = array();
 661+
 662+/**
650663 * Object cache settings
651664 * See Defines.php for types
652665 */
Index: trunk/extensions/Makesysop/SpecialMakesysop.php
@@ -32,18 +32,6 @@
3333
3434 $wgAvailableRights[] = 'makesysop';
3535
36 -/**
37 - * Quick hack for clusters with multiple master servers; if an alternate
38 - * is listed for the requested database, a connection to it will be opened
39 - * instead of to the current wiki's regular master server.
40 - *
41 - * Requires that the other server be accessible by network, with the same
42 - * username/password as the primary.
43 - *
44 - * eg $wgAlternateMaster['enwiki'] = 'ariel';
45 - */
46 -$wgAlternateMaster = array();
47 -
4836 # Register special page
4937 if ( !function_exists( 'extAddSpecialPage' ) ) {
5038 require( dirname(__FILE__) . '/../ExtensionFunctions.php' );

Follow-up revisions

RevisionCommit summaryAuthorDate
r24631Merged revisions 24480-24600 via svnmerge from...david18:39, 6 August 2007

Status & tagging log