← Back to team overview

maria-developers team mailing list archive

Re: 46e0c8a9219: MDEV-11071: Assertion `thd->transaction.stmt.is_empty()' failed in Locked_tables_list::unlock_locked_table

 

Hi, Oleksandr!

On Jun 14, Oleksandr Byelkin wrote:
> Am 13.06.2018 um 12:08 schrieb Sergei Golubchik:
> >> diff --git a/sql/sql_table.cc b/sql/sql_table.cc
> >> index 9e7973b745c..f3cb85f01d3 100644
> >> --- a/sql/sql_table.cc
> >> +++ b/sql/sql_table.cc
> >> @@ -4894,7 +4894,13 @@ int create_table_impl(THD *thd,
> >>       file= mysql_create_frm_image(thd, orig_db, orig_table_name, create_info,
> >>                                    alter_info, create_table_mode, key_info,
> >>                                    key_count, frm);
> >> -    if (!file)
> >> +    /*
> >> +      We have to check thd->is_error() here because it can be set by
> >> +      Item::val* for example, and before it will be cought accidentally by
> >> +      Item_func::fix_fields() of the next call. Now we removed the check
> >> +      from Item_func::fix_fields()
> >> +    */
> >
> > and I still don't understand why do you need to check for thd->is_error()
> > here
> because it catch some other errors which never will be checked and 
> fixing this IMHO is other matter and in higher version.

Some other errors like what?

Regards,
Sergei
Chief Architect MariaDB
and security@xxxxxxxxxxx


Follow ups

References