Skip to content

Commit 9b10220

Browse files
authored
Merge pull request #249 from MaRDI4NFDI/SimpleDbConf
Remove unused LBFactoryConf setup for CI environment
2 parents 8454951 + 8381fd7 commit 9b10220

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

LocalSettings.d/base/00_database.php

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,6 @@
3131
// fall back to english otherwise
3232
}
3333

34-
if ( false && getenv( 'CI' ) !== 'true' ) {
35-
$wgLBFactoryConf = [
36-
37-
'class' => 'LBFactoryMulti',
38-
39-
'sectionsByDB' => [
40-
'my_wiki' => 's1',
41-
'wiki_swmath' => 's1',
42-
],
43-
44-
'sectionLoads' => [
45-
's1' => [
46-
'mysql.svc' => 0,
47-
'mysql-repl.svc' => 50, /* the 50 is the weight (of replica servers). Would matter if you had multiple */
48-
],
49-
],
50-
51-
'serverTemplate' => [
52-
'dbname' => $wgDBname,
53-
'user' => $wgDBuser,
54-
'password' => $wgDBpassword,
55-
'type' => 'mysql',
56-
'flags' => DBO_DEFAULT,
57-
'max lag' => 30,
58-
],
59-
];
60-
}
61-
6234
if ( getenv('DB_PRIMARY_IP') && getenv('DB_SECONDARY_IP') ) {
6335
$wgLBFactoryConf = array(
6436

0 commit comments

Comments
 (0)