Skip to content

Commit

Permalink
MDEV-12179: Per-engine mysql.gtid_slave_pos table
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
knielsen committed Apr 25, 2017
1 parent 89aad23 commit 59bab55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sql/rpl_gtid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 59bab55

Please sign in to comment.