MySQL Forums
Forum List  »  InnoDB

Re: Deadlock with single SQL statement ?
Posted by: Heikki Tuuri
Date: April 11, 2005 03:03AM

Maxim,

the deadlock happens for T1 (transaction 2 above). InnoDB decides to roll back T2, because T2 has done less work than T1. That is why you receive the deadlock error from T2!

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
3896
April 07, 2005 11:12AM
Re: Deadlock with single SQL statement ?
2071
April 11, 2005 03:03AM


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.