mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Test and fix deadlock parsing with partition info.
This commit is contained in:
19
t/pt-deadlock-logger/samples/dead-lock-with-partitions.sql
Normal file
19
t/pt-deadlock-logger/samples/dead-lock-with-partitions.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
drop database if exists test;
|
||||
create database test;
|
||||
use test;
|
||||
|
||||
CREATE TABLE dl (
|
||||
id INT NOT NULL,
|
||||
store_id INT NOT NULL,
|
||||
a INT NOT NULL,
|
||||
primary key (id, store_id),
|
||||
unique key (store_id)
|
||||
) ENGINE=InnoDB
|
||||
|
||||
PARTITION BY RANGE (store_id) (
|
||||
PARTITION p0 VALUES LESS THAN (6),
|
||||
PARTITION p1 VALUES LESS THAN (11)
|
||||
);
|
||||
|
||||
insert into test.dl values
|
||||
(1, 1, 0), (2, 2, 0), (3, 3, 0), (4, 4, 1), (5, 5, 1), (6, 6, 1);
|
Reference in New Issue
Block a user