Loading sql/ha_ndbcluster_binlog.cc +2 −1 Original line number Diff line number Diff line Loading @@ -1641,7 +1641,8 @@ int ndb_add_binlog_index(THD *thd, void *_row) { if (need_reopen) { close_tables_for_reopen(thd, &binlog_tables); TABLE_LIST *p_binlog_tables= &binlog_tables; close_tables_for_reopen(thd, &p_binlog_tables); binlog_index= 0; continue; } Loading sql/log_event.cc +2 −2 Original line number Diff line number Diff line Loading @@ -5281,6 +5281,7 @@ int Rows_log_event::exec_event(st_relay_log_info *rli) tested replicate-* rules). */ TABLE_LIST table_list; TABLE_LIST *tables= &table_list; bool need_reopen; uint count= 1; bzero(&table_list, sizeof(table_list)); Loading Loading @@ -5330,13 +5331,12 @@ int Rows_log_event::exec_event(st_relay_log_info *rli) */ thd->binlog_flush_pending_rows_event(false); close_tables_for_reopen(thd, &table_list); close_tables_for_reopen(thd, &tables); /* open the table again, same as in Table_map_event::exec_event */ table_list.db= const_cast<char*>(db); table_list.alias= table_list.table_name= const_cast<char*>(table_name); table_list.updating= 1; TABLE_LIST *tables= &table_list; if ((error= open_tables(thd, &tables, &count, 0)) == 0) { /* reset some variables for the table list*/ Loading Loading
sql/ha_ndbcluster_binlog.cc +2 −1 Original line number Diff line number Diff line Loading @@ -1641,7 +1641,8 @@ int ndb_add_binlog_index(THD *thd, void *_row) { if (need_reopen) { close_tables_for_reopen(thd, &binlog_tables); TABLE_LIST *p_binlog_tables= &binlog_tables; close_tables_for_reopen(thd, &p_binlog_tables); binlog_index= 0; continue; } Loading
sql/log_event.cc +2 −2 Original line number Diff line number Diff line Loading @@ -5281,6 +5281,7 @@ int Rows_log_event::exec_event(st_relay_log_info *rli) tested replicate-* rules). */ TABLE_LIST table_list; TABLE_LIST *tables= &table_list; bool need_reopen; uint count= 1; bzero(&table_list, sizeof(table_list)); Loading Loading @@ -5330,13 +5331,12 @@ int Rows_log_event::exec_event(st_relay_log_info *rli) */ thd->binlog_flush_pending_rows_event(false); close_tables_for_reopen(thd, &table_list); close_tables_for_reopen(thd, &tables); /* open the table again, same as in Table_map_event::exec_event */ table_list.db= const_cast<char*>(db); table_list.alias= table_list.table_name= const_cast<char*>(table_name); table_list.updating= 1; TABLE_LIST *tables= &table_list; if ((error= open_tables(thd, &tables, &count, 0)) == 0) { /* reset some variables for the table list*/ Loading