Demon has submitted this change and it was merged. Change subject: [JobQueue] Reduced the change of deadlocks in recycleStaleJobs(). ......................................................................
[JobQueue] Reduced the change of deadlocks in recycleStaleJobs(). * Do the DELETE by primary key to avoid gap locks. This should cut down on deadlocks, though their frequency is still fairly modest. * Also use GET_LOCK() to assure that two processes are not doing this update at the same time. Change-Id: Ic3de3b7cb3acd5294a151b4a00bfed65c33d0f1e --- M includes/job/JobQueueDB.php 1 file changed, 37 insertions(+), 13 deletions(-) Approvals: Demon: Looks good to me, approved jenkins-bot: Verified; Looks good to me, but someone else must approve -- To view, visit https://gerrit.wikimedia.org/r/37291 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ic3de3b7cb3acd5294a151b4a00bfed65c33d0f1e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <[email protected]> Gerrit-Reviewer: Demon <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
