diff options
author | Libing Song <libing.song@oracle.com> | 2013-09-10 09:35:49 +0800 |
---|---|---|
committer | Libing Song <libing.song@oracle.com> | 2013-09-10 09:35:49 +0800 |
commit | d5fdf9ef88bf06bac9c55ff2d00b1f80b69fb42a (patch) | |
tree | 0acfaec2e336a27c3aefe6fd840c13ffa73f3be9 /mysys/mf_iocache2.c | |
parent | cdec34bcd0b85a84ff5d4745d987a6e39acdcbae (diff) | |
download | mariadb-git-d5fdf9ef88bf06bac9c55ff2d00b1f80b69fb42a.tar.gz |
Bug#17402313 DUMP THREAD SENDS SOME EVENTS MORE THAN ONCE
Dump thread may encounter an error when reading events from the active binlog
file. However the errors may be temporary, so dump thread will try to read
the event again. But dump thread seeked to an wrong position, it caused some
events was sent twice.
To fix the bug, prev_pos is defined out the while loop and is set the correct
position after reading every event correctly.
This patch also make binlog_can_be_corrupted more accurate, only the binlogs
not closed normally are marked binlog_can_be_corrupted.
Finally, two warnings are added when dump threads encounter the temporary
errors.
Diffstat (limited to 'mysys/mf_iocache2.c')
0 files changed, 0 insertions, 0 deletions