MySQL Forums
Forum List  »  InnoDB

Re: How to resolve deadlock caused during concurrent inserts into one table
Posted by: Rick James
Date: September 22, 2010 10:53PM

Both of those are trying to insert into the same spot at the same time. InnoDB will abort (ROLLBACK) one of your transactions. All you need to do is catch the error in your code and re-execute the failed transaction.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: How to resolve deadlock caused during concurrent inserts into one table
5095
September 22, 2010 10:53PM


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.