# Leave at false to use the single-server variables above
$wgDBservers = false;
+# How long to wait for a slave to catch up to the master
+$wgMasterWaitTimeout = 10;
+
# Sysop SQL queries
# The sql user shouldn't have too many rights other the database, restrict
# it to SELECT only on 'cur' table for example
global $wgBlockCache, $wgParserCache, $wgParser, $wgMsgParserOptions;
global $wgLoadBalancer, $wgDBservers, $wgDebugDumpSql;
global $wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, $wgDBtype;
-global $wgUseOldExistenceCheck, $wgEnablePersistentLC;
+global $wgUseOldExistenceCheck, $wgEnablePersistentLC, $wgMasterWaitTimeout;
global $wgFullyInitialised;
'flags' => ($wgDebugDumpSql ? DBO_DEBUG : 0) | DBO_DEFAULT
));
}
-$wgLoadBalancer = LoadBalancer::newFromParams( $wgDBservers );
+$wgLoadBalancer = LoadBalancer::newFromParams( $wgDBservers, false, $wgMasterWaitTimeout );
$wgLoadBalancer->loadMasterPos();
wfProfileOut( $fname.'-database' );