Databases
Bug Report
SELECT ... FOR UPDATE on an unindexed column locked every row in the table
A job that claimed work items with FOR UPDATE meant to lock one row. Without an index on the filter column, InnoDB locked every row it scanned, and all other workers queued behind it. How data_locks showed the real lock set and why an index fixed it.