MySQL Forums
Forum List  »  General

Re: Mysql Deadlock explanation
Posted by: Akex Mythos
Date: February 03, 2014 09:45PM

Hi Rick.

Finally i found query that lock insert's.

It was update for closing older session.

Like this:

update session
set closed=now(),state_id=2 where id < 123456

And this update and insert was in one transaction.

I remove transaction wrap and now it work ok.

Options: ReplyQuote


Subject
Written By
Posted
January 19, 2014 10:14PM
January 20, 2014 06:54PM
January 20, 2014 09:06PM
January 21, 2014 01:54AM
January 22, 2014 11:50PM
January 23, 2014 12:10AM
Re: Mysql Deadlock explanation
February 03, 2014 09:45PM


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.