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:
Kristian Nielsen 2017-04-25 10:01:33 +02:00
parent 89aad233de
commit 59bab556a0

View file

@ -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)