diff options
author | Kristian Nielsen <knielsen@knielsen-hq.org> | 2015-02-23 13:27:51 +0100 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2015-02-23 13:27:51 +0100 |
commit | b5d6aa551770100b01a67cad12f41bae9f573dc4 (patch) | |
tree | 9386ef462b8d3d5c659d6cd18446ec9ed972e8f8 /sql/log.cc | |
parent | fdd6c111c254c5044cd9b6c2f7e4d0c74f427a79 (diff) | |
download | mariadb-git-bb-5.5-knielsen.tar.gz |
MDEV-7310: last_commit_pos_offset set to wrong value after binlog rotate in group commitbb-5.5-knielsen
When the binlog was rotated due to @@max_binlog_size, the values of the
binlog_shapshot_file and binlog_snapshot_position were inconsistent in case of
non-transactional DML. The position was refering to the old file, while the
filename was of the new file after rotation. This patch makes them consistent
by making sure the position is also refering to the new file.
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log.cc b/sql/log.cc index b639ff8115e..5db32831443 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -6094,6 +6094,8 @@ MYSQL_BIN_LOG::trx_group_commit_leader(group_commit_entry *leader) last_in_queue->commit_errno= errno; check_purge= false; } + /* In case of binlog rotate, update the correct current binlog offset. */ + commit_offset= my_b_write_tell(&log_file); } } |