MySQL Forums
Forum List  »  InnoDB

Re: Inexplicable Deadlock (show InnoDB status)
Posted by: Gaurav Jain
Date: June 27, 2008 07:03PM

Why insert statements are locking gaps as shown in show innodb status above.

As per the documentation of insert at

http://dev.mysql.com/doc/refman/5.0/en/innodb-locks-set.html

****
INSERT INTO ... VALUES (...) sets an exclusive lock on the inserted row. Note that this lock is not a next-key lock and does not prevent other users from inserting to the gap before the inserted row. If a duplicate-key error occurs, a shared lock on the duplicate index record is set.
****


inserts should not employ next-key locks (gap locks)

any pointers ? am i missing something ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Inexplicable Deadlock (show InnoDB status)
2922
June 27, 2008 07:03PM


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.