Bug #24188 | show engine innodb status - deadlock report inaccurate? | ||
---|---|---|---|
Submitted: | 10 Nov 2006 13:46 | Modified: | 10 Nov 2006 15:32 |
Reporter: | Brice Figureau | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0.26 | OS: | Linux (linux debian sid) |
Assigned to: | CPU Architecture: | Any | |
Tags: | deadlock, innodb |
[10 Nov 2006 13:46]
Brice Figureau
[10 Nov 2006 13:47]
Brice Figureau
show engine innodb status - deadlock output
Attachment: trn.txt (text/plain), 2.51 KiB.
[10 Nov 2006 15:12]
Valeriy Kravchuk
Sorry, but I do not see any bug here. At least, please, show all the results of SHOW INNODB STATUSD/SHOW PROCESSLIST that proves there are more than 2 transactions involved... I see the following: 1. Transaction 2 set X lock on PRIMARY index record(s) in www_dow/game_rank because of UPDATE 2. Transaction 1 set S lock on table (not shown), and wants S lock on PRIMARY index record(s) of www_dow/game_rank, so it should wait... 3. Transaction 2 wants X lock on some record in index `idx` of table `www_dow/game_rank, (to UPDATE it), but can not get it because of S lock at table level. We have a deadlock. I see no bugs here, really.
[10 Nov 2006 15:32]
Brice Figureau
Thank you for the fast anwser. I'm sorry for the noise. I think it would be great if the deadlock output could show _all_ the locks involved, as you did in your comment. About more than 2 transactions, that was just a shot in the dark, as I didn't understood the whole table was S locked by the transaction 1. I was wondering why it couldn't grab the lock on idx, so I thought something else was locking it.