X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfetchText.php;h=9c5a375154aa3f3cca84066c86b7624468d37cb3;hb=8b706516e027a7ad81f04b123fd53d77f351787a;hp=7e1b527defae2facc19a148b19d25421a52603d3;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fetchText.php b/maintenance/fetchText.php index 7e1b527def..9c5a375154 100644 --- a/maintenance/fetchText.php +++ b/maintenance/fetchText.php @@ -24,6 +24,8 @@ require_once __DIR__ . '/Maintenance.php'; +use Wikimedia\Rdbms\IDatabase; + /** * Maintenance script used to fetch page text in a subprocess. * @@ -49,7 +51,7 @@ class FetchText extends Maintenance { * note that the text string itself is *not* followed by newline */ public function execute() { - $db = $this->getDB( DB_SLAVE ); + $db = $this->getDB( DB_REPLICA ); $stdin = $this->getStdin(); while ( !feof( $stdin ) ) { $line = fgets( $stdin ); @@ -71,7 +73,7 @@ class FetchText extends Maintenance { /** * May throw a database error if, say, the server dies during query. - * @param DatabaseBase $db + * @param IDatabase $db * @param int $id The old_id * @return string */