1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fixed access to unitialized memory when using unique HASH key

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
This commit is contained in:
Monty
2019-08-13 17:17:56 +03:00
parent 2dbe472ed0
commit c4fd167d5a
3 changed files with 18 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
cardinality
10
2
Table Op Msg_type Msg_text
test.bug57252 analyze status Engine-independent statistics collected
test.bug57252 analyze status OK