mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug #17812 Previous lock table for write causes "stray" lock although table is recreated
- only set table share version to 0 (zero) on global invalidation
This commit is contained in:
@ -63,3 +63,15 @@ pk u o
|
||||
5 5 5
|
||||
insert into t1 values (1,1,1);
|
||||
drop table t1;
|
||||
create table t3 (id2 int) engine=ndb;
|
||||
lock tables t3 write;
|
||||
unlock tables;
|
||||
id2
|
||||
drop table t3;
|
||||
create table t2 (id int, j int) engine=ndb;
|
||||
insert into t2 values (2, 2);
|
||||
create table t3 (id int) engine=ndb;
|
||||
lock tables t3 read;
|
||||
delete t2 from t2, t3 where t2.id = t3.id;
|
||||
unlock tables;
|
||||
drop table t2, t3;
|
||||
|
Reference in New Issue
Block a user