Don't rotate binlog if prepared xids in log
Bug #1036040 reported by
Stewart Smith
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
Low
|
Stewart Smith | ||
5.5 |
Fix Released
|
Low
|
Stewart Smith |
Bug Description
253. By Stewart Smith on 2012-05-30
fix the purge() call in MYSQL_BIN_
The binlog shouldn't be rotated while there's prepared xids in it, so the condition in the if() here is wrong, we should run purge() if we have no xid_count and check_purge was set.
Related branches
lp:~stewart/percona-server/max-binlog-files
- Laurynas Biveinis (community): Approve
- Alexey Kopytov: Pending requested
-
Diff: 641 lines (+477/-1)14 files modifiedPercona-Server/mysql-test/r/mysqld--help-notwin.result (+6/-0)
Percona-Server/mysql-test/r/mysqld--help-win.result (+6/-0)
Percona-Server/mysql-test/r/percona_server_variables_debug.result (+1/-0)
Percona-Server/mysql-test/r/percona_server_variables_release.result (+1/-0)
Percona-Server/mysql-test/suite/binlog/r/percona_binlog_max_nr.result (+30/-0)
Percona-Server/mysql-test/suite/binlog/t/percona_binlog_max_nr-master.opt (+2/-0)
Percona-Server/mysql-test/suite/binlog/t/percona_binlog_max_nr.test (+60/-0)
Percona-Server/mysql-test/suite/sys_vars/r/max_binlog_files_basic.result (+134/-0)
Percona-Server/mysql-test/suite/sys_vars/t/max_binlog_files_basic.test (+147/-0)
Percona-Server/sql/log.cc (+76/-1)
Percona-Server/sql/log.h (+1/-0)
Percona-Server/sql/mysqld.cc (+4/-0)
Percona-Server/sql/mysqld.h (+1/-0)
Percona-Server/sql/sys_vars.cc (+8/-0)
To post a comment you must log in.
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-1931