Forum Moderators: open
Why does my first thread cause my second thread to wait until it's done a commit?
Thread 1 first does this...
START TRANSACTION;
SELECT * from x_cart where sequence=1;
Thread 2 then does this before thread 1 commits:
START TRANSACTION;
SELECT * from x_cart where sequence=13;
----
I'm not even asked the row to be locked "FOR UPDATE", so why does the 2nd thread/transaction have to wait for the first to commit?