1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-27 13:04:36 +03:00
Files
mariadb/storage/tokudb/mysql-test/tokudb_bugs/t/checkpoint_lock.test
2014-03-18 09:02:57 +01:00

32 lines
865 B
Plaintext

# ticket 895 is a query optimization problem with the primary key
#--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,,);
connection default;
--sleep 2
select DB, command, state, info from information_schema.processlist where id != connection_id();
flush logs;
select DB, command, state, info from information_schema.processlist where id != connection_id();
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 where id != connection_id();
set tokudb_checkpoint_lock=0;
connection default;
--reap
disconnect conn1;
# Final cleanup.
set global tokudb_checkpoint_on_flush_logs=OFF;