Commit 7ece30dc authored by Zardosht Kasheff's avatar Zardosht Kasheff

[t:3006], add test cases

git-svn-id: file:///svn/mysql/tests/mysql-test@25121 c7de825b-a66e-492c-adef-691d508d4ae1
parent d6ae6f3c
SET STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root)
show processlist;
Id User Host db Command Time State Info
23 root localhost:53551 test Query 0 NULL show processlist
24 root localhost:53552 test Sleep 0 NULL
flush logs;
show processlist;
Id User Host db Command Time State Info
23 root localhost:53551 test Query 0 NULL show processlist
24 root localhost:53552 test Sleep 0 NULL
set tokudb_checkpoint_lock=1;
flush logs;;
show processlist;
Id User Host db Command Time State Info
23 root localhost:53551 test Query 2 NULL flush logs
24 root localhost:53552 test Query 0 NULL show processlist
set tokudb_checkpoint_lock=0;
SET STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root)
# should see nothing
show processlist;
Id User Host db Command Time State Info
20 root localhost:53548 test Query 0 NULL show processlist
21 root localhost:53549 test Sleep 0 NULL
22 root localhost:53550 test Sleep 0 NULL
flush logs;
# should see nothing
show processlist;
Id User Host db Command Time State Info
20 root localhost:53548 test Query 0 NULL show processlist
21 root localhost:53549 test Sleep 0 NULL
22 root localhost:53550 test Sleep 0 NULL
set session tokudb_checkpoint_lock=1;
flush logs;;
# should see a flush logs
show processlist;
Id User Host db Command Time State Info
20 root localhost:53548 test Query 2 NULL flush logs
21 root localhost:53549 test Sleep 2 NULL
22 root localhost:53550 test Query 0 NULL show processlist
set session tokudb_checkpoint_lock=1;
# should still see a flush logs
show processlist;
Id User Host db Command Time State Info
20 root localhost:53548 test Query 2 NULL flush logs
21 root localhost:53549 test Sleep 2 NULL
22 root localhost:53550 test Query 0 NULL show processlist
set session tokudb_checkpoint_lock=0;
# should still see a flush logs
show processlist;
Id User Host db Command Time State Info
20 root localhost:53548 test Query 4 NULL flush logs
21 root localhost:53549 test Query 0 NULL show processlist
22 root localhost:53550 test Sleep 2 NULL
set session tokudb_checkpoint_lock=0;
# should see nothing
show processlist;
Id User Host db Command Time State Info
20 root localhost:53548 test Sleep 6 NULL
21 root localhost:53549 test Sleep 2 NULL
22 root localhost:53550 test Query 0 NULL show processlist
# ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
connection default;
show processlist;
flush logs;
show processlist;
connection conn1;
set tokudb_checkpoint_lock=1;
connection default;
--send flush logs;
connection conn1;
--sleep 2
show processlist;
set tokudb_checkpoint_lock=0;
connection default;
--reap
disconnect conn1;
# Final cleanup.
# ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc
SET STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
connect (conn2,localhost,root,,);
connection default;
--echo # should see nothing
show processlist;
flush logs;
--echo # should see nothing
show processlist;
connection conn1;
set session tokudb_checkpoint_lock=1;
connection default;
--send flush logs;
connection conn2;
--sleep 2
--echo # should see a flush logs
show processlist;
set session tokudb_checkpoint_lock=1;
--echo # should still see a flush logs
show processlist;
connection conn1;
--sleep 2
set session tokudb_checkpoint_lock=0;
--echo # should still see a flush logs
show processlist;
connection conn2;
set session tokudb_checkpoint_lock=0;
--sleep 2
--echo # should see nothing
show processlist;
connection default;
--reap
disconnect conn1;
disconnect conn2;
# Final cleanup.
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