diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2014-11-17 12:42:02 +0100 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2014-11-17 12:42:02 +0100 |
commit | e9fc98b5838c06356209196384e37a11e8e3c058 (patch) | |
tree | 8a0bc46a4947dcee78dd85a506c6754ab4c37c72 /tests/check_async_queries.pl | |
parent | f976050793ec9d63d474f440b220794914259c55 (diff) | |
download | mariadb-git-e9fc98b5838c06356209196384e37a11e8e3c058.tar.gz |
MDEV-7121: Parallel slave may hang if master crashes in the middle of writing transaction to binlog
When a master server restarts, it writes a restart format_description event as
the first event in the next binlog file. The parallel slave SQL thread queues
a special restart entry for the current worker thread to signal this, so that
the worker thread can roll back any prior partial transaction that might have
been written to the binlog due to master crashing.
This queueing was missing a mysql_cond_signal() to notify the worker
thread. This could cause the worker thread to not process the restart entry,
and this in turn would cause the SQL thread to hang infinitely waiting for the
worker thread to complete processing.
Fix by adding the missing wakeup signalling for this case.
Diffstat (limited to 'tests/check_async_queries.pl')
0 files changed, 0 insertions, 0 deletions