Commit 3dd6fca7 authored by Jan Lindström's avatar Jan Lindström

Fix test failure on innodb-trim.

Skip test if system can't do trim operation.
parent 406e113e
...@@ -31,18 +31,18 @@ call innodb_insert_proc(16000); ...@@ -31,18 +31,18 @@ call innodb_insert_proc(16000);
commit; commit;
set autocommit=1; set autocommit=1;
--disable_warnings
let $success= `SELECT variable_value FROM information_schema.global_status WHERE variable_name = 'innodb_num_page_compressed_trim_op'`;
if (!$success) {
--disable_query_log --disable_query_log
--disable_result_log --disable_result_log
let $success= SELECT variable_value FROM information_schema.global_status WHERE variable_name = 'innodb_num_page_compressed_trim_op'; DROP PROCEDURE innodb_insert_proc;
DROP TABLE innodb_page_compressed;
if ($success) {
let $wait_condition= SELECT variable_value > 5 FROM information_schema.global_status WHERE variable_name = 'innodb_num_page_compressed_trim_op';
--source include/wait_condition.inc
}
--enable_warnings
--enable_query_log --enable_query_log
--enable_result_log --enable_result_log
--skip "Test requires TRIM";
}
DROP PROCEDURE innodb_insert_proc; DROP PROCEDURE innodb_insert_proc;
DROP TABLE innodb_page_compressed; DROP TABLE innodb_page_compressed;
......
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