MySQL Forums
Forum List  »  InnoDB

Re: How to avoid deadlocks in INNODB
Posted by: Heikki Tuuri
Date: December 17, 2005 08:32PM

Sarat,

are you using triggers in MySQL-5.0? It is waiting for a table lock on a table that is not even mentioned in the UPDATE statement. Or are you updating a view?

"
update user set inner_label=NULL, outer_label=NULL where user_id=401331
...
TABLE LOCK table `etrace_prod_dbo/gwuser` trx id 0 19686195 lock mode X waiting
"

InnoDB does use row-level locking. I need to check what kind of table locking MySQL uses in triggers and views.

Please post an unedited printout of a deadlock. It was not clear to me if you had edited it in some way.

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
12057
December 15, 2005 04:55PM
4371
December 15, 2005 08:00PM
3640
December 16, 2005 12:20PM
3682
December 16, 2005 06:03PM
4928
December 16, 2005 04:12PM
3105
December 16, 2005 06:05PM
3146
December 19, 2005 10:06AM
Re: How to avoid deadlocks in INNODB
3445
December 17, 2005 08:32PM
3344
December 17, 2005 08:40PM
3080
December 19, 2005 10:03AM
2748
December 19, 2005 10:33AM
2859
December 19, 2005 10:38AM
2639
December 20, 2005 04:04AM
2824
December 20, 2005 05:26PM
3022
January 05, 2006 09:58AM


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.