dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e735694
)
Tweak to nextJobDB: don't explode on a system where $wgAlternateMaster array isn...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:23:28 +0000
(
00:23
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 29 Jan 2008 00:23:28 +0000
(
00:23
+0000)
maintenance/nextJobDB.php
patch
|
blob
|
history
diff --git
a/maintenance/nextJobDB.php
b/maintenance/nextJobDB.php
index
acb277d
..
b2500ca
100644
(file)
--- a/
maintenance/nextJobDB.php
+++ b/
maintenance/nextJobDB.php
@@
-21,7
+21,9
@@
if ( !$pendingDBs ) {
$pendingDBs = array();
# Cross-reference DBs by master DB server
$dbsByMaster = array();
- $defaultMaster = $wgAlternateMaster['DEFAULT'];
+ $defaultMaster = isset( $wgAlternateMaster['DEFAULT'] )
+ ? $wgAlternateMaster['DEFAULT']
+ : $wgDBserver;
foreach ( $wgLocalDatabases as $db ) {
if ( isset( $wgAlternateMaster[$db] ) ) {
$dbsByMaster[$wgAlternateMaster[$db]][] = $db;