Re: Inexplicable Deadlock (show InnoDB status)
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 ?
Subject
Views
Written By
Posted
8087
July 10, 2007 01:56AM
4022
July 18, 2007 02:22PM
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.