41 if ( is_null( $this->title ) ) {
46 $pageId = $this->params[
'pageId'];
49 $scopedLock = LinksUpdate::acquirePageLock(
wfGetDB(
DB_MASTER ), $pageId,
'job' );
50 if ( $scopedLock ===
null ) {
51 $this->
setLastError(
'LinksUpdate already running for this page, try again later.' );
55 if ( WikiPage::newFromID( $pageId, WikiPage::READ_LATEST ) ) {
57 $this->
setLastError(
"deleteLinks: Page #$pageId exists" );
61 $factory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
62 $timestamp = $this->params[
'timestamp'] ??
null;
63 $page = WikiPage::factory( $this->title );
66 $update->setTransactionTicket( $factory->getEmptyTransactionTicket( __METHOD__ ) );