mirror of
https://github.com/MariaDB/server.git
synced 2026-02-17 16:18:42 +01:00
commit f6ed777697db4ad7aee1e98c53243dced2b5891c
Author: Chenyu Yan <seayan@outlook.com>
Date: Thu Dec 29 16:10:25 2016 -0800
Fix BIG_TIMEOUT constant
Summary: Update the constant to reflect what the comments indicates.
Reviewed By: gunnarku
Differential Revision: D4374476
fbshipit-source-id: dd7f484
31 lines
805 B
Text
31 lines
805 B
Text
DROP TABLE IF EXISTS t1;
|
|
DROP TABLE IF EXISTS t2;
|
|
create table t1 (a int, primary key(a) comment 'lock_into_cf1') engine=rocksdb;
|
|
insert into t1 values (1);
|
|
insert into t1 values (2);
|
|
create table t2 (a int, primary key(a) comment 'lock_info_cf2') engine=rocksdb;
|
|
insert into t2 values (1);
|
|
insert into t2 values (2);
|
|
set autocommit=0;
|
|
select * from t1 for update;
|
|
a
|
|
1
|
|
2
|
|
select * from t2 for update;
|
|
a
|
|
1
|
|
2
|
|
use information_schema;
|
|
select rocksdb_ddl.cf, rocksdb_locks.transaction_id, rocksdb_locks.key
|
|
from rocksdb_locks
|
|
left join rocksdb_ddl
|
|
on rocksdb_locks.column_family_id=rocksdb_ddl.column_family
|
|
order by rocksdb_ddl.cf;
|
|
cf transaction_id key
|
|
lock_info_cf2 _txn_id_ _key_
|
|
lock_info_cf2 _txn_id_ _key_
|
|
lock_into_cf1 _txn_id_ _key_
|
|
lock_into_cf1 _txn_id_ _key_
|
|
use test;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|