- $dbr = $this->getDB( DB_SLAVE );
- $res = $dbr->select( [ 'page', 'revision' ],
+ $dbr = $this->getDB( DB_REPLICA );
+
+ $actorQuery = ActorMigration::newMigration()
+ ->getWhere( $dbr, 'rev_user', User::newFromName( 'MediaWiki default' ) );
+ $res = $dbr->select(
+ [ 'page', 'revision' ] + $actorQuery['tables'],