mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
864d6bc90b
into partitioned MyISAM table Problem was that the ha_data structure was introduced in 5.1 and only used for partitioning first, but with the intention of be of use for others engines as well, and when used by other engines it would clash if it also was partitioned. Solution is to move the partitioning specific data to a separate structure, with its own mutex (which is used for auto_increment). Also did rename PARTITION_INFO to PARTITION_STATS since there already exist a class named partition_info, also cleaned up some related variables.
13 lines
421 B
Text
13 lines
421 B
Text
DROP TABLE IF EXISTS t1;
|
|
#
|
|
# Bug#51851: Server with SBR locks mutex twice on LOAD DATA into
|
|
# partitioned MyISAM table
|
|
CREATE TABLE t1
|
|
(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
name TINYBLOB NOT NULL,
|
|
modified TIMESTAMP DEFAULT '0000-00-00 00:00:00',
|
|
INDEX namelocs (name(255))) ENGINE = MyISAM
|
|
PARTITION BY HASH(id) PARTITIONS 2;
|
|
LOAD DATA LOCAL INFILE 'init_file.txt'
|
|
INTO TABLE t1 (name);
|
|
DROP TABLE t1;
|