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:
@@ -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
|
||||
|
Reference in New Issue
Block a user