From: Aaron Schulz Date: Wed, 18 May 2016 22:05:11 +0000 (-0700) Subject: Make LinksUpdate only wait on the DB with the link tables X-Git-Tag: 1.31.0-rc.0~6920^2 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=7ee9645c1ec3e257f3cfadb0446a1bb7f3006e88;p=lhc%2Fweb%2Fwiklou.git Make LinksUpdate only wait on the DB with the link tables Bug: T135690 Change-Id: If79ca385884f422e5ed11e77b29033c8cabf494c --- diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index ac08374350..1f7f3b0cbb 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -389,14 +389,14 @@ class LinksUpdate extends SqlDataUpdate implements EnqueueableDataUpdate { foreach ( $deleteWheres as $deleteWhere ) { $this->mDb->delete( $table, $deleteWhere, __METHOD__ ); $this->mDb->commit( __METHOD__, 'flush' ); - wfGetLBFactory()->waitForReplication(); + wfGetLBFactory()->waitForReplication( [ 'wiki' => $this->mDb->getWikiID() ] ); } $insertBatches = array_chunk( $insertions, self::BATCH_SIZE ); foreach ( $insertBatches as $insertBatch ) { $this->mDb->insert( $table, $insertBatch, __METHOD__, 'IGNORE' ); $this->mDb->commit( __METHOD__, 'flush' ); - wfGetLBFactory()->waitForReplication(); + wfGetLBFactory()->waitForReplication( [ 'wiki' => $this->mDb->getWikiID() ] ); } if ( count( $insertions ) ) {