$filteriw = isset($params['filteriw']) ? $params['filteriw'] : false;
$this->appendInterwikiMap($p, $filteriw);
break;
- case 'dbserverlag' :
- $this->appendDbServerLagInfo($p, $params['showalldb']);
+ case 'dbrepllag' :
+ $this->appendDbReplLagInfo($p, $params['showalldb']);
break;
}
}
$this->getResult()->addValue('query', $property, $data);
}
- protected function appendDbServerLagInfo($property, $includeAll) {
+ protected function appendDbReplLagInfo($property, $includeAll) {
global $wgLoadBalancer;
$data = array();
'general',
'namespaces',
'interwikimap',
- 'dbserverlag',
+ 'dbrepllag',
)),
'filteriw' => array (
' "general" - Overall system information',
' "namespaces" - List of registered namespaces (localized)',
' "interwikimap" - Return interwiki map (optionally filtered)',
- ' "dbserverlag" - Get highest database replication server lag',
+ ' "dbrepllag" - Returns DB server with the highest replication lag',
),
'filteriw' => 'Return only local or only nonlocal entries of the interwiki map',
'showalldb' => 'List all DB servers, not just the one lagging the most',
return array(
'api.php?action=query&meta=siteinfo&siprop=general|namespaces',
'api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local',
+ 'api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb',
);
}