MDEV-35060 Assertion failure upon DML on table with vector under lock
This commit is contained in:
parent
09889d417b
commit
09cd817f5d
@ -163,3 +163,11 @@ disconnect con1;
|
|||||||
connection default;
|
connection default;
|
||||||
commit;
|
commit;
|
||||||
drop table t;
|
drop table t;
|
||||||
|
#
|
||||||
|
# MDEV-35060 Assertion failure upon DML on table with vector under lock
|
||||||
|
#
|
||||||
|
create table t (a int, v blob not null, vector(v)) engine=innodb;
|
||||||
|
insert into t values (1,x'00000000'),(2,x'00000000');
|
||||||
|
lock table t write;
|
||||||
|
delete from t;
|
||||||
|
drop table t;
|
||||||
|
@ -150,3 +150,12 @@ disconnect con1;
|
|||||||
connection default;
|
connection default;
|
||||||
commit;
|
commit;
|
||||||
drop table t;
|
drop table t;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-35060 Assertion failure upon DML on table with vector under lock
|
||||||
|
--echo #
|
||||||
|
create table t (a int, v blob not null, vector(v)) engine=innodb;
|
||||||
|
insert into t values (1,x'00000000'),(2,x'00000000');
|
||||||
|
lock table t write;
|
||||||
|
delete from t;
|
||||||
|
drop table t;
|
||||||
|
@ -616,8 +616,6 @@ MHNSW_Trx *MHNSW_Trx::get_from_thd(TABLE *table, bool for_update)
|
|||||||
if (!for_update && !trx)
|
if (!for_update && !trx)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
DBUG_ASSERT(!table->mdl_ticket ||
|
|
||||||
table->mdl_ticket->m_duration == MDL_TRANSACTION);
|
|
||||||
while (trx && trx->table_id != table->mdl_ticket) trx= trx->next;
|
while (trx && trx->table_id != table->mdl_ticket) trx= trx->next;
|
||||||
if (!trx)
|
if (!trx)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user