diff --git a/sql/handler.cc b/sql/handler.cc index e2a8d16b723..a9688fb96b4 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -1921,7 +1921,10 @@ static my_bool xarecover_handlerton(THD *unused, plugin_ref plugin, info->found_foreign_xids++; continue; } - if (info->dry_run) + if (IF_WSREP(!(wsrep_emulate_bin_log && + wsrep_is_wsrep_xid(info->list + i) && + x <= wsrep_limit) && info->dry_run, + info->dry_run)) { info->found_my_xids++; continue;