Commit de57da73 authored by Anel Husakovic's avatar Anel Husakovic Committed by Sergei Golubchik

MDEV-28351: Assertion `this->file->children_attached' failed in ha_myisammrg::info

- Fix MSAN uninitialized value error, obtained by calling handlerton's
`info()`, and referencing uninitialized `errkey`.
- Reviewer: serg@mariadb.com
parent 82d9d72f
...@@ -33,6 +33,8 @@ int myrg_status(MYRG_INFO *info,register MYMERGE_INFO *x,int flag) ...@@ -33,6 +33,8 @@ int myrg_status(MYRG_INFO *info,register MYMERGE_INFO *x,int flag)
MYRG_TABLE *current_table; MYRG_TABLE *current_table;
DBUG_ENTER("myrg_status"); DBUG_ENTER("myrg_status");
x->errkey= 0;
x->dupp_key_pos= 0;
if (!(current_table = info->current_table) && if (!(current_table = info->current_table) &&
info->open_tables != info->end_table) info->open_tables != info->end_table)
current_table = info->open_tables; current_table = info->open_tables;
...@@ -72,11 +74,6 @@ int myrg_status(MYRG_INFO *info,register MYMERGE_INFO *x,int flag) ...@@ -72,11 +74,6 @@ int myrg_status(MYRG_INFO *info,register MYMERGE_INFO *x,int flag)
*/ */
x->dupp_key_pos= current_table->file_offset + current_table->table->dupp_key_pos; x->dupp_key_pos= current_table->file_offset + current_table->table->dupp_key_pos;
} }
else
{
x->errkey= 0;
x->dupp_key_pos= 0;
}
} }
x->records= info->records; x->records= info->records;
x->deleted= info->del; x->deleted= info->del;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment