~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/key_cache.result

  • Committer: Stewart Smith
  • Date: 2009-02-18 14:18:03 UTC
  • mto: This revision was merged to the branch mainline in revision 889.
  • Revision ID: stewart@flamingspork.com-20090218141803-o3nh9vi7s4jkq5rp
Fix key_cache test for 32bit.

The key cache block structure has pointers in it.

On 32 and 64 bit, these are different sizes.

There's even a comment in the test to indicate this.

The test file should replace all possible numbers with KEY_BLOCKS_UNUSED, but this was messed up in fixing the
test case for Drizzle. This cset fixes that.

Currently tested on x86 and x86-64. Pretty sure (99.9%) that this will cover all platforms involved.

Our numbers are different from current MySQL 6 for some random reason that I don't really care about.
Number of blocks * block_size roughly equals key cache size - so i'm happy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
Key_blocks_used 0
91
91
show status like 'key_blocks_unused';
92
92
Variable_name   Value
93
 
Key_blocks_unused       837
 
93
Key_blocks_unused       KEY_BLOCKS_UNUSED
94
94
insert into t1 values (1, 'qqqq'), (11, 'yyyy');
95
95
insert into t2 values (1, 1, 'qqqq'), (2, 1, 'pppp'),
96
96
(3, 1, 'yyyy'), (4, 3, 'zzzz');
111
111
Key_blocks_used 4
112
112
show status like 'key_blocks_unused';
113
113
Variable_name   Value
114
 
Key_blocks_unused       833
 
114
Key_blocks_unused       KEY_BLOCKS_UNUSED
115
115
cache index t1 key (`primary`) in keycache1;
116
116
Table   Op      Msg_type        Msg_text
117
117
test.t1 assign_to_keycache      status  OK
273
273
Key_blocks_used 4
274
274
show status like 'key_blocks_unused';
275
275
Variable_name   Value
276
 
Key_blocks_unused       837
 
276
Key_blocks_unused       KEY_BLOCKS_UNUSED
277
277
set global keycache2.key_buffer_size=0;
278
278
set global keycache3.key_buffer_size=100;
279
279
Warnings: