One more $wgDBtype. I think this is the last offender in core; all the remaining usages are justified
This commit is contained in:
parent
a548c1d87a
commit
7c577f96ec
1 changed files with 1 additions and 3 deletions
|
|
@ -240,14 +240,12 @@ class SqlBagOStuff extends BagOStuff {
|
|||
var $lastExpireAll = 0;
|
||||
|
||||
protected function getDB() {
|
||||
global $wgDBtype;
|
||||
|
||||
if ( !isset( $this->db ) ) {
|
||||
/* We must keep a separate connection to MySQL in order to avoid deadlocks
|
||||
* However, SQLite has an opposite behaviour.
|
||||
* @todo Investigate behaviour for other databases
|
||||
*/
|
||||
if ( $wgDBtype == 'sqlite' ) {
|
||||
if ( wfGetDB( DB_MASTER )->getType() == 'sqlite' ) {
|
||||
$this->db = wfGetDB( DB_MASTER );
|
||||
} else {
|
||||
$this->lb = wfGetLBFactory()->newMainLB();
|
||||
|
|
|
|||
Loading…
Reference in a new issue