From 9ca608028f3c0b419bbc5451f5f2c0ecc8ced0fd Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 27 Dec 2016 00:13:32 +0000 Subject: [PATCH] MariaRocks port: make rocksdb.rocksdb_qcache test pass --- storage/rocksdb/mysql-test/rocksdb/r/rocksdb_qcache.result | 4 +++- storage/rocksdb/mysql-test/rocksdb/t/rocksdb_qcache.test | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_qcache.result b/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_qcache.result index 7a17dabf294..57c5b897462 100644 --- a/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_qcache.result +++ b/storage/rocksdb/mysql-test/rocksdb/r/rocksdb_qcache.result @@ -28,9 +28,11 @@ pk c show status like 'Qcache_hits'; Variable_name Value 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'; Variable_name Value -Qcache_not_cached 3 +Qcache_not_cached 2 show global status like 'Qcache_hits'; Variable_name Value Qcache_hits 0 diff --git a/storage/rocksdb/mysql-test/rocksdb/t/rocksdb_qcache.test b/storage/rocksdb/mysql-test/rocksdb/t/rocksdb_qcache.test index 5cfbe3fbd39..b62002b0020 100644 --- a/storage/rocksdb/mysql-test/rocksdb/t/rocksdb_qcache.test +++ b/storage/rocksdb/mysql-test/rocksdb/t/rocksdb_qcache.test @@ -24,6 +24,8 @@ select * from t1; select sql_no_cache * from t1; select * from t1 where pk = 1; 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 global status like 'Qcache_hits';