• istruewing@chilla.local's avatar
    Bug#28478 - Improper key_cache_block_size corrupts MyISAM tables · 59a05422
    istruewing@chilla.local authored
    Setting a key_cache_block_size which is not a power of 2
    could corrupt MyISAM tables.
    
    A couple of computations in the key cache code use bit
    operations which do only work if key_cache_block_size
    is a power of 2.
    
    Replaced bit operations by arithmetic operations
    to make key cache able to handle block sizes that are
    not a power of 2.
    59a05422
keycache.h 6.55 KB