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';