mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
WSREP_TO_ISOLATION_BEGIN should be called with the table list.
This commit is contained in:
@ -4706,17 +4706,6 @@ restart:
|
||||
if (!tbl)
|
||||
continue;
|
||||
|
||||
if (WSREP_ON &&
|
||||
wsrep_replicate_myisam &&
|
||||
tables &&
|
||||
tbl->file->ht == myisam_hton &&
|
||||
sqlcom_can_generate_row_events(thd) &&
|
||||
thd->get_command() != COM_STMT_PREPARE &&
|
||||
tables->lock_type >= TL_WRITE_ALLOW_WRITE)
|
||||
{
|
||||
WSREP_TO_ISOLATION_BEGIN(NULL, NULL, tables);
|
||||
}
|
||||
|
||||
/* Schema tables may not have a TABLE object here. */
|
||||
if (tbl->file->ht->db_type == DB_TYPE_MRG_MYISAM)
|
||||
{
|
||||
@ -4743,6 +4732,17 @@ restart:
|
||||
}
|
||||
}
|
||||
|
||||
if (WSREP_ON &&
|
||||
wsrep_replicate_myisam &&
|
||||
(*start) &&
|
||||
(*start)->table &&
|
||||
(*start)->table->file->ht == myisam_hton &&
|
||||
sqlcom_can_generate_row_events(thd) &&
|
||||
thd->get_command() != COM_STMT_PREPARE)
|
||||
{
|
||||
WSREP_TO_ISOLATION_BEGIN(NULL, NULL, (*start));
|
||||
}
|
||||
|
||||
error:
|
||||
THD_STAGE_INFO(thd, stage_after_opening_tables);
|
||||
thd_proc_info(thd, 0);
|
||||
|
Reference in New Issue
Block a user