Unexpected SELECT FOR UPDATE side effect in MySQL
A few months back, I encountered a strange behavior in an application I was working on. From time to time, a timeout error would pop up in the application logs. I started checking potential problems. First, I looked into the code, but I didn't find anything. The error