• Monty's avatar
    Fixed access to unitialized memory when using unique HASH key · c4fd167d
    Monty authored
    Fixed the following issues:
    - Call info with HA_STATUS_CONST to ensure that (key_info->rec_per_key)
      contains latest data
    - Don't access rec_per_key if key_info->algorithm == HA_KEY_ALG_LONG_HASH
      is in this case the rec_per_key points to uninitialized data
    - Cleaned up code to avoid some extra 'if' and to make things more readable
    - Updated test cases that used 'old' rec_per_key values
    c4fd167d
innodb_bug57252.result 157 Bytes