Bug #29929 | LOCK TABLES does not pre-lock tables used in triggers of the locked tables | ||
---|---|---|---|
Submitted: | 20 Jul 2007 11:20 | Modified: | 2 Aug 2007 3:50 |
Reporter: | Ingo Strüwing | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S1 (Critical) |
Version: | 5.0, 5.1, 5.2 | OS: | Any |
Assigned to: | Kristofer Pettersson | CPU Architecture: | Any |
[20 Jul 2007 11:20]
Ingo Strüwing
[27 Jul 2007 14:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/31712 ChangeSet@1.2479, 2007-07-27 16:56:29+02:00, thek@adventure.(none) +5 -0 Bug #29929 LOCK TABLES does not pre-lock tables used in triggers of the locked tables When a table was explicitly locked with LOCK TABLES no associated tables from any related trigger on the subject table were locked. As a result of this the user could experience unexpected locking behavior and statement failures similar to "failed: 1100: Table'xx' was not locked with LOCK TABLES". This patch fixes this problem by making sure triggers are pre-loaded on any statement if the subject table was explicitly locked with LOCK TABLES.
[1 Aug 2007 23:26]
Bugs System
Pushed into 5.0.48
[1 Aug 2007 23:27]
Bugs System
Pushed into 5.1.21-beta
[2 Aug 2007 3:50]
Paul DuBois
Noted in 5.0.48, 5.1.21 changelogs. OCK TABLES did not pre-lock tables used in triggers of the locked tables. Unexpected locking behavior and statement failures similar to failed: 1100: Table 'xx' was not locked with LOCK TABLES could result.