dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "registration: Always specify version number in extension.schema.json file"
[lhc/web/wiklou.git]
/
includes
/
CategoryFinder.php
diff --git
a/includes/CategoryFinder.php
b/includes/CategoryFinder.php
index
3d5e6c5
..
504b35f
100644
(file)
--- a/
includes/CategoryFinder.php
+++ b/
includes/CategoryFinder.php
@@
-40,7
+40,6
@@
* $a = $cf->run();
* print implode( ',' , $a );
* @endcode
* $a = $cf->run();
* print implode( ',' , $a );
* @endcode
- *
*/
class CategoryFinder {
/** @var int[] The original article IDs passed to the seed function */
*/
class CategoryFinder {
/** @var int[] The original article IDs passed to the seed function */
@@
-64,7
+63,7
@@
class CategoryFinder {
/** @var string "AND" or "OR" */
protected $mode;
/** @var string "AND" or "OR" */
protected $mode;
- /** @var IDatabase Read-DB
slave
*/
+ /** @var IDatabase Read-DB
replica DB
*/
protected $dbr;
/**
protected $dbr;
/**
@@
-96,7
+95,7
@@
class CategoryFinder {
* @return array Array of page_ids (those given to seed() that match the conditions)
*/
public function run() {
* @return array Array of page_ids (those given to seed() that match the conditions)
*/
public function run() {
- $this->dbr = wfGetDB( DB_
SLAVE
);
+ $this->dbr = wfGetDB( DB_
REPLICA
);
while ( count( $this->next ) > 0 ) {
$this->scanNextLayer();
}
while ( count( $this->next ) > 0 ) {
$this->scanNextLayer();
}