Commit c7c39671 authored by Sergei Golubchik's avatar Sergei Golubchik

use correct thd for DEBUG_SYNC in group commit

it always has to be current_thd, DBUG_SYNC asserts that.

fixes sporadic SIGABRT's in binlog_encryption.rpl_parallel_slave_bgc_kill
parent d8368ae2
......@@ -8029,9 +8029,9 @@ MYSQL_BIN_LOG::queue_for_group_commit(group_commit_entry *orig_entry)
if (entry->cache_mngr->using_xa)
{
DEBUG_SYNC(entry->thd, "commit_before_prepare_ordered");
DEBUG_SYNC(orig_entry->thd, "commit_before_prepare_ordered");
run_prepare_ordered(entry->thd, entry->all);
DEBUG_SYNC(entry->thd, "commit_after_prepare_ordered");
DEBUG_SYNC(orig_entry->thd, "commit_after_prepare_ordered");
}
if (cur)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment