Skip to content

Commit 44f5d8a

Browse files
jenkins-botGerrit Code Review
authored andcommitted
Merge "Avoid lock acquisition errors for multi-title refreshlinks jobs"
2 parents 26b883a + a549313 commit 44f5d8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/jobqueue/jobs/RefreshLinksJob.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ protected function runForTitle( Title $title ) {
279279

280280
InfoAction::invalidateCache( $title );
281281

282+
// Commit any writes here in case this method is called in a loop.
283+
// In that case, the scoped lock will fail to be acquired.
284+
$lbFactory->commitAndWaitForReplication( __METHOD__, $ticket );
285+
282286
return true;
283287
}
284288

0 commit comments

Comments
 (0)