Skip to content

Commit

Permalink
MDEV-28351: Assertion `this->file->children_attached' failed in ha_my…
Browse files Browse the repository at this point in the history
…isammrg::info

- Fix MSAN uninitialized value rror.
- Reviewer: <>
  • Loading branch information
an3l committed Aug 2, 2023
1 parent d4fe932 commit c204487
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions storage/myisammrg/myrg_info.c
Expand Up @@ -33,6 +33,8 @@ int myrg_status(MYRG_INFO *info,register MYMERGE_INFO *x,int flag)
MYRG_TABLE *current_table;
DBUG_ENTER("myrg_status");

x->errkey= 0;
x->dupp_key_pos= 0;
if (!(current_table = info->current_table) &&
info->open_tables != info->end_table)
current_table = info->open_tables;
Expand Down Expand Up @@ -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;
}
else
{
x->errkey= 0;
x->dupp_key_pos= 0;
}
}
x->records= info->records;
x->deleted= info->del;
Expand Down

0 comments on commit c204487

Please sign in to comment.