Loading sql/handler.cc +5 −4 Original line number Diff line number Diff line Loading @@ -3268,10 +3268,11 @@ namespace if (thd->get_binlog_table_maps() == 0) { MYSQL_LOCK *const locks[] = { thd->extra_lock, thd->lock, thd->locked_tables }; for (my_ptrdiff_t i= 0 ; i < sizeof(locks)/sizeof(*locks) ; ++i ) MYSQL_LOCK *locks[3]; locks[0]= thd->extra_lock; locks[1]= thd->lock; locks[2]= thd->locked_tables; for (uint i= 0 ; i < sizeof(locks)/sizeof(*locks) ; ++i ) { MYSQL_LOCK const *const lock= locks[i]; if (lock == NULL) Loading sql/log_event.cc +10 −8 Original line number Diff line number Diff line Loading @@ -5871,7 +5871,7 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) table_list->db, table_list->table_name); thd->query_error= 1; } DBUG_RETURN(error); goto err; } m_table= table_list->table; Loading Loading @@ -5948,7 +5948,8 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) } thd->query_error= 1; DBUG_RETURN(ERR_BAD_TABLE_DEF); error= ERR_BAD_TABLE_DEF; goto err; } /* Loading @@ -5956,12 +5957,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) locked by linking the table into the list of tables to lock, and tell the RLI that we are touching a table. */ if (!error) { table_list->next_global= table_list->next_local= rli->tables_to_lock; rli->tables_to_lock= table_list; rli->tables_to_lock_count++; } /* 'memory' is freed in clear_tables_to_lock */ } /* Loading @@ -5976,7 +5975,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) if (likely(!error)) rli->inc_event_relay_log_pos(); DBUG_RETURN(error); err: my_free((gptr) memory, MYF(MY_WME)); DBUG_RETURN(error); } #endif /* !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION) */ Loading Loading
sql/handler.cc +5 −4 Original line number Diff line number Diff line Loading @@ -3268,10 +3268,11 @@ namespace if (thd->get_binlog_table_maps() == 0) { MYSQL_LOCK *const locks[] = { thd->extra_lock, thd->lock, thd->locked_tables }; for (my_ptrdiff_t i= 0 ; i < sizeof(locks)/sizeof(*locks) ; ++i ) MYSQL_LOCK *locks[3]; locks[0]= thd->extra_lock; locks[1]= thd->lock; locks[2]= thd->locked_tables; for (uint i= 0 ; i < sizeof(locks)/sizeof(*locks) ; ++i ) { MYSQL_LOCK const *const lock= locks[i]; if (lock == NULL) Loading
sql/log_event.cc +10 −8 Original line number Diff line number Diff line Loading @@ -5871,7 +5871,7 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) table_list->db, table_list->table_name); thd->query_error= 1; } DBUG_RETURN(error); goto err; } m_table= table_list->table; Loading Loading @@ -5948,7 +5948,8 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) } thd->query_error= 1; DBUG_RETURN(ERR_BAD_TABLE_DEF); error= ERR_BAD_TABLE_DEF; goto err; } /* Loading @@ -5956,12 +5957,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) locked by linking the table into the list of tables to lock, and tell the RLI that we are touching a table. */ if (!error) { table_list->next_global= table_list->next_local= rli->tables_to_lock; rli->tables_to_lock= table_list; rli->tables_to_lock_count++; } /* 'memory' is freed in clear_tables_to_lock */ } /* Loading @@ -5976,7 +5975,10 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli) if (likely(!error)) rli->inc_event_relay_log_pos(); DBUG_RETURN(error); err: my_free((gptr) memory, MYF(MY_WME)); DBUG_RETURN(error); } #endif /* !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION) */ Loading