2010-11-02 20:56:48 +00:00
|
|
|
# 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;
|
2011-08-30 19:17:16 +00:00
|
|
|
--sleep 2
|
|
|
|
select DB, command, state, info from information_schema.processlist;
|
2010-11-02 20:56:48 +00:00
|
|
|
flush logs;
|
2011-08-30 19:17:16 +00:00
|
|
|
select DB, command, state, info from information_schema.processlist;
|
2010-11-02 20:56:48 +00:00
|
|
|
|
|
|
|
connection conn1;
|
|
|
|
set tokudb_checkpoint_lock=1;
|
|
|
|
|
|
|
|
connection default;
|
|
|
|
--send flush logs;
|
|
|
|
|
|
|
|
connection conn1;
|
|
|
|
--sleep 2
|
2011-08-30 19:17:16 +00:00
|
|
|
select DB, command, state, info from information_schema.processlist;
|
2010-11-02 20:56:48 +00:00
|
|
|
set tokudb_checkpoint_lock=0;
|
|
|
|
|
|
|
|
connection default;
|
|
|
|
--reap
|
|
|
|
disconnect conn1;
|
|
|
|
|
|
|
|
# Final cleanup.
|