mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-26637: (explicit length) ASAN: main.metadata and user_variables.basic MTR failures after MDEV-26572
Use explicit length for hash record length
This commit is contained in:
@@ -1632,7 +1632,8 @@ scan_one_gtid_slave_pos_table(THD *thd, HASH *hash, DYNAMIC_ARRAY *array,
|
||||
goto end;
|
||||
}
|
||||
|
||||
if ((rec= my_hash_search(hash, (const uchar *)&domain_id, 0)))
|
||||
if ((rec= my_hash_search(hash, (const uchar *)&domain_id,
|
||||
sizeof(domain_id))))
|
||||
{
|
||||
entry= (struct gtid_pos_element *)rec;
|
||||
if (entry->sub_id >= sub_id)
|
||||
|
Reference in New Issue
Block a user