1# include file for checking if variable key_reads = key_read_requests
2let $key_reads= query_get_value(SHOW STATUS LIKE 'key_reads',Value,1);
3let $key_r_req= query_get_value(SHOW STATUS LIKE 'key_read_requests',Value,1);
4let $key_writes= query_get_value(SHOW STATUS LIKE 'key_writes',Value,1);
5let $key_w_req= query_get_value(SHOW STATUS LIKE 'key_write_requests',Value,1);
6--disable_query_log
7eval SELECT IF($key_reads = $key_r_req, "reads == requests", "reads != requests") as 'reads vs requests';
8eval SELECT IF($key_writes = $key_w_req, "writes == requests", "writes != requests") as 'writes vs requests';
9--enable_query_log
10