33 lines
857 B
Plaintext
33 lines
857 B
Plaintext
--source suite/xengine/include/have_xengine.inc
|
|
|
|
--disable_warnings
|
|
DROP TABLE IF EXISTS t1;
|
|
DROP TABLE IF EXISTS t2;
|
|
--enable_warnings
|
|
|
|
create table t1 (a int, primary key(a) comment 'lock_into_cf1') engine=xengine;
|
|
insert into t1 values (1);
|
|
insert into t1 values (2);
|
|
|
|
create table t2 (a int, primary key(a) comment 'lock_info_cf2') engine=xengine;
|
|
insert into t2 values (1);
|
|
insert into t2 values (2);
|
|
|
|
set autocommit=0;
|
|
select * from t1 for update;
|
|
select * from t2 for update;
|
|
|
|
use information_schema;
|
|
--replace_column 1 # 2 _txn_id_ 3 _key_
|
|
select xengine_ddl.subtable_id, xengine_locks.transaction_id, xengine_locks.key
|
|
from xengine_locks
|
|
left join xengine_ddl
|
|
on xengine_locks.subtable_id=xengine_ddl.subtable_id
|
|
order by xengine_ddl.subtable_id;
|
|
|
|
use test;
|
|
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
--source suite/xengine/include/check_xengine_log_error.inc
|