~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/r/key_cache.result

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
DROP TABLE t1,t2;
335
335
set global key_cache_block_size= @my_key_cache_block_size;
336
336
set @@global.key_buffer_size=0;
337
 
Warnings:
338
 
Warning 1438    Cannot drop default keycache
 
337
ERROR HY000: Cannot drop default keycache
339
338
select @@global.key_buffer_size;
340
339
@@global.key_buffer_size
341
340
2097152
366
365
key_cache_block_size    1536
367
366
SET GLOBAL key_cache_block_size= @bug28478_key_cache_block_size;
368
367
DROP TABLE t1;
 
368
#
 
369
# Bug#12361113: crash when load index into cache
 
370
#
 
371
# Note that this creates an empty disabled key cache!
 
372
SET GLOBAL key_cache_none.key_cache_block_size = 1024;
 
373
CREATE TABLE t1 (a INT, b INTEGER NOT NULL, KEY (b) ) ENGINE = MYISAM;
 
374
INSERT INTO t1 VALUES (1, 1);
 
375
CACHE INDEX t1 in key_cache_none;
 
376
ERROR HY000: Unknown key cache 'key_cache_none'
 
377
# The bug crashed the server at LOAD INDEX below. Now it will succeed 
 
378
# since the default cache is used due to CACHE INDEX failed for
 
379
# key_cache_none.
 
380
LOAD INDEX INTO CACHE t1;
 
381
Table   Op      Msg_type        Msg_text
 
382
test.t1 preload_keys    status  OK
 
383
DROP TABLE t1;