* @copyright © 2011, Antoine Musso
*/
+use Wikimedia\Rdbms\ResultWrapper;
+use Wikimedia\Rdbms\FakeResultWrapper;
+use Wikimedia\Rdbms\IDatabase;
+
/**
* Class for fetching backlink lists, approximate backlink counts and
* partitions. This is a shared cache.
/**
* Get the replica DB connection to the database
* When non existing, will initialize the connection.
- * @return Database
+ * @return IDatabase
*/
protected function getDB() {
if ( !isset( $this->db ) ) {
// 4) ... finally fetch from the slow database :(
$cacheEntry = [ 'numRows' => 0, 'batches' => [] ]; // final result
- // Do the selects in batches to avoid client-side OOMs (bug 43452).
+ // Do the selects in batches to avoid client-side OOMs (T45452).
// Use a LIMIT that plays well with $batchSize to keep equal sized partitions.
$selectSize = max( $batchSize, 200000 - ( 200000 % $batchSize ) );
$start = false;