Commit eb2edae8 authored by Konstantin Osipov's avatar Konstantin Osipov

Fix a failure of rpl_cross_version, caused by hand-initalization

of the TABLE_LIST instance, which did not initialize the 
MDL request properly.
Use init_one_table() to initialize the MDL request.
parent af83bf12
...@@ -4583,10 +4583,10 @@ int Load_log_event::do_apply_event(NET* net, Relay_log_info const *rli, ...@@ -4583,10 +4583,10 @@ int Load_log_event::do_apply_event(NET* net, Relay_log_info const *rli,
thd->warning_info->opt_clear_warning_info(thd->query_id); thd->warning_info->opt_clear_warning_info(thd->query_id);
TABLE_LIST tables; TABLE_LIST tables;
bzero((char*) &tables,sizeof(tables)); tables.init_one_table(thd->strmake(thd->db, thd->db_length),
tables.db= thd->strmake(thd->db, thd->db_length); thd->db_length,
tables.alias = tables.table_name = (char*) table_name; table_name, strlen(table_name),
tables.lock_type = TL_WRITE; table_name, TL_WRITE);
tables.updating= 1; tables.updating= 1;
// the table will be opened in mysql_load // the table will be opened in mysql_load
......
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