Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -57,8 +57,8 @@ |
58 | 58 | $filteriw = isset($params['filteriw']) ? $params['filteriw'] : false; |
59 | 59 | $this->appendInterwikiMap($p, $filteriw); |
60 | 60 | break; |
61 | | - case 'dbserverlag' : |
62 | | - $this->appendDbServerLagInfo($p, $params['showalldb']); |
| 61 | + case 'dbrepllag' : |
| 62 | + $this->appendDbReplLagInfo($p, $params['showalldb']); |
63 | 63 | break; |
64 | 64 | } |
65 | 65 | } |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | $this->getResult()->addValue('query', $property, $data); |
133 | 133 | } |
134 | 134 | |
135 | | - protected function appendDbServerLagInfo($property, $includeAll) { |
| 135 | + protected function appendDbReplLagInfo($property, $includeAll) { |
136 | 136 | global $wgLoadBalancer; |
137 | 137 | |
138 | 138 | $data = array(); |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | 'general', |
168 | 168 | 'namespaces', |
169 | 169 | 'interwikimap', |
170 | | - 'dbserverlag', |
| 170 | + 'dbrepllag', |
171 | 171 | )), |
172 | 172 | |
173 | 173 | 'filteriw' => array ( |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | ' "general" - Overall system information', |
188 | 188 | ' "namespaces" - List of registered namespaces (localized)', |
189 | 189 | ' "interwikimap" - Return interwiki map (optionally filtered)', |
190 | | - ' "dbserverlag" - Get highest database replication server lag', |
| 190 | + ' "dbrepllag" - Returns DB server with the highest replication lag', |
191 | 191 | ), |
192 | 192 | 'filteriw' => 'Return only local or only nonlocal entries of the interwiki map', |
193 | 193 | 'showalldb' => 'List all DB servers, not just the one lagging the most', |
— | — | @@ -201,6 +201,7 @@ |
202 | 202 | return array( |
203 | 203 | 'api.php?action=query&meta=siteinfo&siprop=general|namespaces', |
204 | 204 | 'api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local', |
| 205 | + 'api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb', |
205 | 206 | ); |
206 | 207 | } |
207 | 208 | |