Commit 16508a64 authored by Rich Prohaska's avatar Rich Prohaska

Tokutek/mysql56#54 alter table test fires tokudb::external_lock assert

parent 49d46c8c
set default_storage_engine=tokudb;
DROP TABLE IF EXISTS p,i,t1_tokudb_tokudb_smallvc_250;
BEGIN;
CREATE TABLE t1_tokudb_tokudb_smallvc_250(
c1 BLOB,
c2 DATE,
unique(c2)) ENGINE=tokudb ROW_FORMAT=tokudb_small;
CREATE TEMPORARY TABLE p LIKE t1_tokudb_tokudb_smallvc_250;
ALTER TABLE p RENAME t1_tokudb_tokudb_smallvc_250;
CREATE TEMPORARY TABLE i SELECT 1 t1_tokudb_tokudb_smallvc_250;
show tables;
Tables_in_test
t1_tokudb_tokudb_smallvc_250
LOCK TABLE i READ;
ALTER TABLE t1_tokudb_tokudb_smallvc_250 MODIFY c1 DATE;
ALTER TABLE t1_tokudb_tokudb_smallvc_250 MODIFY c1 DATE;
ALTER TABLE t1_tokudb_tokudb_smallvc_250 MODIFY c1 DATE;
UNLOCK TABLES;
COMMIT;
DROP TABLE IF EXISTS i,p,t1_tokudb_tokudb_smallvc_250;
DROP TABLE t1_tokudb_tokudb_smallvc_250;
# test case for Tokutek/mysql56#54, assert in tokudb::external_lock
source include/have_tokudb.inc;
set default_storage_engine=tokudb;
disable_warnings;
DROP TABLE IF EXISTS p,i,t1_tokudb_tokudb_smallvc_250;
enable_warnings;
BEGIN;
CREATE TABLE t1_tokudb_tokudb_smallvc_250(
c1 BLOB,
c2 DATE,
unique(c2)) ENGINE=tokudb ROW_FORMAT=tokudb_small;
CREATE TEMPORARY TABLE p LIKE t1_tokudb_tokudb_smallvc_250;
ALTER TABLE p RENAME t1_tokudb_tokudb_smallvc_250;
CREATE TEMPORARY TABLE i SELECT 1 t1_tokudb_tokudb_smallvc_250;
show tables;
LOCK TABLE i READ;
ALTER TABLE t1_tokudb_tokudb_smallvc_250 MODIFY c1 DATE;
ALTER TABLE t1_tokudb_tokudb_smallvc_250 MODIFY c1 DATE;
ALTER TABLE t1_tokudb_tokudb_smallvc_250 MODIFY c1 DATE;
UNLOCK TABLES;
COMMIT;
disable_warnings;
DROP TABLE IF EXISTS i,p,t1_tokudb_tokudb_smallvc_250;
enable_warnings;
DROP TABLE t1_tokudb_tokudb_smallvc_250;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment