1
0
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:
tomas@poseidon.ndb.mysql.com
2006-03-08 14:45:09 +01:00
parent ce9676a474
commit ed1f9a3402
3 changed files with 49 additions and 1 deletions

View File

@ -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;