MySQL Forums
Forum List  »  InnoDB

Re: MySQL locking in Duplicate Key Error
Posted by: Priyansh Goel
Date: June 22, 2016 01:21PM

Exactly. I just want to understand so as to why the third one deadlocks? The doc says that they acquire shared locks. But I am unable to understand that because how can share locks come into picture with insert query?

Also, the second one runs because the third transaction rollbacks with the error.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL locking in Duplicate Key Error
829
June 22, 2016 01:21PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.