List:Internals« Previous MessageNext Message »
From:Hagen Höpfner Date:October 16 2005 7:49pm
Subject:MYI and MAX_BLOCK_SIZE ???
View as plain text  
Dear List,

what is the MAX_BLOCK_SIZE that is stored in the MYI-Header

  uint    i, keys= (uint) state->header.keys,
    key_blocks=state->header.max_block_size;

In the internals-documentation there is the example that this value
might be 0x01 ... but what does this mean? I know that key are written
in a page/block-wise manner but this does not help for intepreting the
block size.

My second question is ... where (source code) can I find the possible
collations (languages) supported by MySQL? There is a Byte in the
MYI-header. So, I assume you might have more than one language ;-)

All the best,

Hagen

BTW: in the version of the internals documentation that I am using, you
have included the following example:

options                       2   00 02                   HA_OPTION_COMPRESS_RECORD
                                                          etc.
But if I look into source code, then I can find 
#define HA_OPTION_PACK_KEYS             2

and

#define HA_OPTION_COMPRESS_RECORD       4

Was there a change in the current version or is it just a inconsitency?

Thread
MYI and MAX_BLOCK_SIZE ???Hagen Höpfner16 Oct
  • Re: MYI and MAX_BLOCK_SIZE ???Sergei Golubchik16 Oct