diff options
author | Mattias Jonsson <mattias.jonsson@oracle.com> | 2011-12-14 14:41:40 +0100 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@oracle.com> | 2011-12-14 14:41:40 +0100 |
commit | 52076824c988c036b0cb84ee3b8a382a48a66612 (patch) | |
tree | dc37feed74d302eb0867508414c776dc10d94bba /mysql-test/r/key_cache.result | |
parent | dfc9bbff2aac08b6afef83a32f4d4141d3325326 (diff) | |
parent | 3ea35d31f02bb2d7ce7df0facd77d112be40a619 (diff) | |
download | mariadb-git-52076824c988c036b0cb84ee3b8a382a48a66612.tar.gz |
merge
Diffstat (limited to 'mysql-test/r/key_cache.result')
-rw-r--r-- | mysql-test/r/key_cache.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/key_cache.result b/mysql-test/r/key_cache.result index f80fea0fc76..78dd65fdcb1 100644 --- a/mysql-test/r/key_cache.result +++ b/mysql-test/r/key_cache.result @@ -365,3 +365,19 @@ Variable_name Value key_cache_block_size 1536 SET GLOBAL key_cache_block_size= @bug28478_key_cache_block_size; DROP TABLE t1; +# +# Bug#12361113: crash when load index into cache +# +# Note that this creates an empty disabled key cache! +SET GLOBAL key_cache_none.key_cache_block_size = 1024; +CREATE TABLE t1 (a INT, b INTEGER NOT NULL, KEY (b) ) ENGINE = MYISAM; +INSERT INTO t1 VALUES (1, 1); +CACHE INDEX t1 in key_cache_none; +ERROR HY000: Unknown key cache 'key_cache_none' +# The bug crashed the server at LOAD INDEX below. Now it will succeed +# since the default cache is used due to CACHE INDEX failed for +# key_cache_none. +LOAD INDEX INTO CACHE t1; +Table Op Msg_type Msg_text +test.t1 preload_keys status OK +DROP TABLE t1; |