Commit 88c0f9f9 authored by Mattias Jonsson's avatar Mattias Jonsson

Bug#49369: No testcase for key caches on partitions

The original test case was lost when
merging WL#4571.

Added the testcase.


mysql-test/include/check_key_reads.inc:
  Bug#49369: No testcase for key caches on partitions
  
  New include file for testing key caches on partitions
  WL#4571
mysql-test/include/check_key_req.inc:
  Bug#49369: No testcase for key caches on partitions
  
  New include file for testing key caches on partitions
  WL#4571
mysql-test/r/partition_key_cache.result:
  Bug#49369: No testcase for key caches on partitions
  
  New test case for testing key caches on partitions
  WL#4571
mysql-test/t/partition_key_cache.test:
  Bug#49369: No testcase for key caches on partitions
  
  New test case for testing key caches on partitions
  WL#4571
parent 587d9174
# include file for checking if variable key_reads is zero
let $key_reads= query_get_value(SHOW STATUS LIKE 'key_reads',Value,1);
--disable_query_log
eval SELECT IF($key_reads = 0, "Yes!", "No!") as 'Zero key reads?';
FLUSH STATUS;
--enable_query_log
# include file for checking if variable key_reads = key_read_requests
let $key_reads= query_get_value(SHOW STATUS LIKE 'key_reads',Value,1);
let $key_r_req= query_get_value(SHOW STATUS LIKE 'key_read_requests',Value,1);
let $key_writes= query_get_value(SHOW STATUS LIKE 'key_writes',Value,1);
let $key_w_req= query_get_value(SHOW STATUS LIKE 'key_write_requests',Value,1);
--disable_query_log
eval SELECT IF($key_reads = $key_r_req, "reads == requests", "reads != requests") as 'reads vs requests';
eval SELECT IF($key_writes = $key_w_req, "writes == requests", "writes != requests") as 'writes vs requests';
--enable_query_log
This diff is collapsed.
This diff is collapsed.
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