MariaRocks port: make rocksdb.rocksdb_qcache test pass

This commit is contained in:
Sergei Petrunia 2016-12-27 00:13:32 +00:00
parent 4faa9da81c
commit 9ca608028f
2 changed files with 5 additions and 1 deletions

View file

@ -28,9 +28,11 @@ pk c
show status like 'Qcache_hits'; show status like 'Qcache_hits';
Variable_name Value Variable_name Value
Qcache_hits 0 Qcache_hits 0
# MariaDB: Qcache_not_cached is not incremented for select sql_no_cache queries
# so the following query produces 2, not 3:
show status like 'Qcache_not_cached'; show status like 'Qcache_not_cached';
Variable_name Value Variable_name Value
Qcache_not_cached 3 Qcache_not_cached 2
show global status like 'Qcache_hits'; show global status like 'Qcache_hits';
Variable_name Value Variable_name Value
Qcache_hits 0 Qcache_hits 0

View file

@ -24,6 +24,8 @@ select * from t1;
select sql_no_cache * from t1; select sql_no_cache * from t1;
select * from t1 where pk = 1; select * from t1 where pk = 1;
show status like 'Qcache_hits'; show status like 'Qcache_hits';
--echo # MariaDB: Qcache_not_cached is not incremented for select sql_no_cache queries
--echo # so the following query produces 2, not 3:
show status like 'Qcache_not_cached'; show status like 'Qcache_not_cached';
show global status like 'Qcache_hits'; show global status like 'Qcache_hits';