mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
Remove wrong assert in log_event_server.cc
The test for: DBUG_ASSERT(thd->lex->query_tables != table_list); does not make any sense: - table_list is a pointer we just got from malloc)() - thd->lex->query_tables can point to an existing TABLE_LIST or is a pointer to already freed memory. In 'main' I got the above assert multiple times triggered when running rpl.rpl_row_img_blobs on a valgrind build. There was nothing wrong with the allocations, just random change have malloc return a recently freed pointer.
This commit is contained in:
@@ -6839,8 +6839,6 @@ int Table_map_log_event::do_apply_event(rpl_group_info *rgi)
|
||||
enum_tbl_map_status tblmap_status= check_table_map(rgi, table_list);
|
||||
if (tblmap_status == OK_TO_PROCESS)
|
||||
{
|
||||
DBUG_ASSERT(thd->lex->query_tables != table_list);
|
||||
|
||||
/*
|
||||
We record in the slave's information that the table should be
|
||||
locked by linking the table into the list of tables to lock.
|
||||
|
||||
Reference in New Issue
Block a user