MySQL Forums
Forum List  »  InnoDB

Re: Deadlocks on inserts to the same table
Posted by: Heikki Tuuri
Date: January 14, 2005 07:33AM

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Deadlocks on inserts to the same table
2784
January 14, 2005 07:33AM


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.