Commit 6d78e802 authored by Zardosht Kasheff's avatar Zardosht Kasheff

refs #5955, add/modify test(s)

git-svn-id: file:///svn/mysql/tests/mysql-test@53732 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6803dfa6
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
set global tokudb_checkpoint_on_flush_logs=ON;
# Establish connection conn1 (user = root)
select DB, command, state, info from information_schema.processlist;
DB command state info
......@@ -16,3 +17,4 @@ DB command state info
test Query executing select DB, command, state, info from information_schema.processlist
test Query NULL flush logs
set tokudb_checkpoint_lock=0;
set global tokudb_checkpoint_on_flush_logs=OFF;
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
set GLOBAL tokudb_checkpoint_on_flush_logs=ON;
# Establish connection conn1 (user = root)
# should see nothing
select DB, command, state, info from information_schema.processlist;
......@@ -42,3 +43,4 @@ DB command state info
test Query executing select DB, command, state, info from information_schema.processlist
test Sleep NULL
test Sleep NULL
set GLOBAL tokudb_checkpoint_on_flush_logs=OFF;
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
# Establish connection conn1 (user = root)
select DB, command, state, info from information_schema.processlist;
DB command state info
test Sleep NULL
test Query executing select DB, command, state, info from information_schema.processlist
flush logs;
select DB, command, state, info from information_schema.processlist;
DB command state info
test Sleep NULL
test Query executing select DB, command, state, info from information_schema.processlist
set tokudb_checkpoint_lock=1;
flush logs;;
select DB, command, state, info from information_schema.processlist;
DB command state info
test Query executing select DB, command, state, info from information_schema.processlist
test Sleep NULL
set tokudb_checkpoint_lock=0;
......@@ -2,7 +2,7 @@
#--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
set global tokudb_checkpoint_on_flush_logs=ON;
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
......@@ -28,3 +28,4 @@ connection default;
disconnect conn1;
# Final cleanup.
set global tokudb_checkpoint_on_flush_logs=OFF;
......@@ -2,6 +2,7 @@
#--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
set GLOBAL tokudb_checkpoint_on_flush_logs=ON;
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
......@@ -53,3 +54,4 @@ disconnect conn1;
disconnect conn2;
# Final cleanup.
set GLOBAL tokudb_checkpoint_on_flush_logs=OFF;
# ticket 895 is a query optimization problem with the primary key
#--source include/have_tokudb.inc
SET DEFAULT_STORAGE_ENGINE = 'tokudb';
--echo # Establish connection conn1 (user = root)
connect (conn1,localhost,root,,);
connection default;
--sleep 2
select DB, command, state, info from information_schema.processlist;
flush logs;
select DB, command, state, info from information_schema.processlist;
connection conn1;
set tokudb_checkpoint_lock=1;
connection default;
--send flush logs;
connection conn1;
--sleep 2
select DB, command, state, info from information_schema.processlist;
set tokudb_checkpoint_lock=0;
connection default;
--reap
disconnect conn1;
# 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