summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-11-06 10:18:04 +0100
committerunknown <knielsen@knielsen-hq.org>2013-11-06 10:18:04 +0100
commitbdbf90b9693ac089425d125c74078f2c22189454 (patch)
treec8d1b39c1a1a4f9abcec2207976c1dc312e3d444 /sql/rpl_rli.h
parentb0391d1b83f64e4bd53c45f0fd395b7acf61980c (diff)
downloadmariadb-git-bdbf90b9693ac089425d125c74078f2c22189454.tar.gz
MDEV-4506: Parallel replication
MDEV-5217: Incorrect event pos update leading to corruption of reading of events from relay log The rli->event_relay_log_pos was sometimes undated incorrectly when using parallel replication, especially around relay log rotates. This could cause the SQL thread to seek into an invalid position in the relay log, resulting in errors about invalid events or even random corruption in some cases.
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r--sql/rpl_rli.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index a3dcf7ad7e9..390936114bc 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -688,8 +688,7 @@ public:
inline void inc_event_relay_log_pos()
{
- if (!is_parallel_exec ||
- rli->event_relay_log_pos < future_event_relay_log_pos)
+ if (!is_parallel_exec)
rli->event_relay_log_pos= future_event_relay_log_pos;
}
};