mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-12179: Per-engine mysql.gtid_slave_pos table
Intermediate commit. Fix record_gtid()'s choice of mysql.gtid_slave_pos* table to only consider engines that participated in the transaction with write operations (ie. ignore read-only participation).
This commit is contained in:
parent
89aad233de
commit
59bab556a0
1 changed files with 5 additions and 1 deletions
|
@ -489,8 +489,12 @@ rpl_slave_state::select_gtid_pos_table(THD *thd, LEX_STRING *out_tablename)
|
|||
Ha_trx_info *ha_info= thd->transaction.all.ha_list;
|
||||
while (ha_info)
|
||||
{
|
||||
void *trx_hton= ha_info->ht();
|
||||
void *trx_hton;
|
||||
table_entry= list;
|
||||
|
||||
if (!ha_info->is_trx_read_write())
|
||||
continue;
|
||||
trx_hton= ha_info->ht();
|
||||
while (table_entry)
|
||||
{
|
||||
if (table_entry->table_hton == trx_hton)
|
||||
|
|
Loading…
Add table
Reference in a new issue