mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
743 lines
18 KiB
Text
743 lines
18 KiB
Text
# Crash recovery
|
|
create or replace procedure prepare_table(r int)
|
|
begin
|
|
create or replace table t1 (x int)
|
|
with system versioning
|
|
partition by range(x) (
|
|
partition p0 values less than (10),
|
|
partition p1 values less than (20),
|
|
partition pn values less than (30));
|
|
insert into t1 values (2), (12), (22);
|
|
if r > 1 then
|
|
create or replace table tp2 (x int)
|
|
with system versioning;
|
|
insert into tp2 values (32), (39);
|
|
end if;
|
|
flush tables;
|
|
end $
|
|
# QUERY: ALTER TABLE t1 CONVERT PARTITION p1 TO TABLE tp1
|
|
# CRASH: crash_create_before_create_frm
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_alter_partition_after_create_frm
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_alter_partition_after_write_frm
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_1
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_2
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_3
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_4
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_5
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_6
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_7
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_8
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
# CRASH: crash_convert_partition_9
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp1.MYD
|
|
tp1.MYI
|
|
tp1.frm
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT PARTITION p1 TO TABLE tp1
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
22
|
|
Table Create Table
|
|
tp1 CREATE TABLE `tp1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
12
|
|
# CRASH: crash_convert_partition_10
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp1.MYD
|
|
tp1.MYI
|
|
tp1.frm
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT PARTITION p1 TO TABLE tp1
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
22
|
|
Table Create Table
|
|
tp1 CREATE TABLE `tp1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
12
|
|
# CRASH: crash_convert_partition_11
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp1.MYD
|
|
tp1.MYI
|
|
tp1.frm
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT PARTITION p1 TO TABLE tp1
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
22
|
|
Table Create Table
|
|
tp1 CREATE TABLE `tp1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
12
|
|
# QUERY: ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
# NO CRASH: crash_create_before_create_frm
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#p2.MYD
|
|
t1#P#p2.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p2` VALUES LESS THAN (40) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
32
|
|
39
|
|
# NO CRASH: crash_alter_partition_after_create_frm
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#p2.MYD
|
|
t1#P#p2.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p2` VALUES LESS THAN (40) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
32
|
|
39
|
|
# NO CRASH: crash_alter_partition_after_write_frm
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#p2.MYD
|
|
t1#P#p2.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p2` VALUES LESS THAN (40) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_1
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_2
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_3
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_4
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_5
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_6
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_7
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_8
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
tp2.MYD
|
|
tp2.MYI
|
|
tp2.frm
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
Table Create Table
|
|
tp2 CREATE TABLE `tp2` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
x
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_9
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#p2.MYD
|
|
t1#P#p2.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p2` VALUES LESS THAN (40) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_10
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#p2.MYD
|
|
t1#P#p2.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p2` VALUES LESS THAN (40) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
32
|
|
39
|
|
# CRASH: crash_convert_partition_11
|
|
t1#P#p0.MYD
|
|
t1#P#p0.MYI
|
|
t1#P#p1.MYD
|
|
t1#P#p1.MYI
|
|
t1#P#p2.MYD
|
|
t1#P#p2.MYI
|
|
t1#P#pn.MYD
|
|
t1#P#pn.MYI
|
|
t1.frm
|
|
t1.par
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 CONVERT TABLE tp2 TO PARTITION p2 values less than (40)
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`x` int(11) DEFAULT NULL
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
|
PARTITION BY RANGE (`x`)
|
|
(PARTITION `p0` VALUES LESS THAN (10) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p1` VALUES LESS THAN (20) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `pn` VALUES LESS THAN (30) ENGINE = DEFAULT_ENGINE,
|
|
PARTITION `p2` VALUES LESS THAN (40) ENGINE = DEFAULT_ENGINE)
|
|
x
|
|
2
|
|
12
|
|
22
|
|
32
|
|
39
|
|
Warnings:
|
|
Note 1051 Unknown table 'test.t1'
|