Skip to content

Commit 9ca6080

Browse files
committed
MariaRocks port: make rocksdb.rocksdb_qcache test pass
1 parent 4faa9da commit 9ca6080

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

storage/rocksdb/mysql-test/rocksdb/r/rocksdb_qcache.result

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ pk c
2828
show status like 'Qcache_hits';
2929
Variable_name Value
3030
Qcache_hits 0
31+
# MariaDB: Qcache_not_cached is not incremented for select sql_no_cache queries
32+
# so the following query produces 2, not 3:
3133
show status like 'Qcache_not_cached';
3234
Variable_name Value
33-
Qcache_not_cached 3
35+
Qcache_not_cached 2
3436
show global status like 'Qcache_hits';
3537
Variable_name Value
3638
Qcache_hits 0

storage/rocksdb/mysql-test/rocksdb/t/rocksdb_qcache.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ select * from t1;
2424
select sql_no_cache * from t1;
2525
select * from t1 where pk = 1;
2626
show status like 'Qcache_hits';
27+
--echo # MariaDB: Qcache_not_cached is not incremented for select sql_no_cache queries
28+
--echo # so the following query produces 2, not 3:
2729
show status like 'Qcache_not_cached';
2830
show global status like 'Qcache_hits';
2931

0 commit comments

Comments
 (0)