From 7ee9645c1ec3e257f3cfadb0446a1bb7f3006e88 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 18 May 2016 15:05:11 -0700 Subject: [PATCH] Make LinksUpdate only wait on the DB with the link tables Bug: T135690 Change-Id: If79ca385884f422e5ed11e77b29033c8cabf494c --- includes/deferred/LinksUpdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ) { -- 2.20.1