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

« back to all changes in this revision

Viewing changes to mysql-test/t/key_cache.test

  • 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:
216
216
# Bug#10473 - Can't set 'key_buffer_size' system variable to ZERO
217
217
# (One cannot drop the default key cache.)
218
218
#
 
219
--error ER_WARN_CANT_DROP_DEFAULT_KEYCACHE
219
220
set @@global.key_buffer_size=0;
220
221
select @@global.key_buffer_size;
221
222
 
247
248
DROP TABLE t1;
248
249
 
249
250
# End of 4.1 tests
 
251
 
 
252
--echo #
 
253
--echo # Bug#12361113: crash when load index into cache
 
254
--echo #
 
255
 
 
256
--echo # Note that this creates an empty disabled key cache!
 
257
SET GLOBAL key_cache_none.key_cache_block_size = 1024;
 
258
CREATE TABLE t1 (a INT, b INTEGER NOT NULL, KEY (b) ) ENGINE = MYISAM;
 
259
INSERT INTO t1 VALUES (1, 1);
 
260
--error ER_UNKNOWN_KEY_CACHE
 
261
CACHE INDEX t1 in key_cache_none;
 
262
--echo # The bug crashed the server at LOAD INDEX below. Now it will succeed 
 
263
--echo # since the default cache is used due to CACHE INDEX failed for
 
264
--echo # key_cache_none.
 
265
LOAD INDEX INTO CACHE t1;
 
266
DROP TABLE t1;