Re: Deadlock with single SQL statement ?
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
Subject
Views
Written By
Posted
3836
April 07, 2005 11:12AM
Re: Deadlock with single SQL statement ?
2047
April 11, 2005 03:03AM
1972
June 29, 2005 01:18AM
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.