Re: Deadlocks on inserts to the same table
Radu,
at a duplicate key error we must take a lock on the duplicate, because you have received information from the server that there is a duplicate row in the database. In locking, all information that you receive from the server must be protected with locks, the state in the server must be kind of 'frozen', so that you can trust it until you commit the transaction.
Best regards,
Heikki
Oracle Corp./Innobase Oy
InnoDB - transactions, row level locking, and foreign keys for MySQL
InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM tables
http://www.innodb.com/order.php
Subject
Views
Written By
Posted
5608
January 03, 2005 04:15PM
2904
January 06, 2005 12:12PM
2814
January 10, 2005 05:05PM
3014
January 12, 2005 01:37AM
2778
January 12, 2005 05:23PM
2840
January 13, 2005 09:59AM
Re: Deadlocks on inserts to the same table
2817
January 14, 2005 07:33AM
3029
February 18, 2005 04:45AM
4233
February 19, 2005 01:01AM
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.