summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2014-03-21 10:11:28 +0100
committerunknown <knielsen@knielsen-hq.org>2014-03-21 10:11:28 +0100
commita5418c5540f06e2ec4016734e9f1cc5c50c01de0 (patch)
tree4e21b26065c2691e19322d4671ff7986e716672f /sql/sql_class.cc
parente59dec0345bba78ba83928060c20c5861cf205f1 (diff)
downloadmariadb-git-a5418c5540f06e2ec4016734e9f1cc5c50c01de0.tar.gz
MDEV-5921: In parallel replication, an error is not correctly signalled to the next transaction
When a transaction fails in parallel replication, it should signal the error to any following transactions doing wait_for_prior_commit() on it. But the code for this was incorrect, and would not correctly remember a prior error when sending the signal. This caused corruption when slave stopped due to an error. Fix by remembering the error code when we first get an error, and passing the saved error code to wakeup_subsequent_commits(). Thanks to nanyi607rao who reported this bug on maria-developers@lists.launchpad.net and analysed the root cause.
Diffstat (limited to 'sql/sql_class.cc')
0 files changed, 0 insertions, 0 deletions