summaryrefslogtreecommitdiff
path: root/sql-bench/test-alter-table.sh
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay.choubey@oracle.com>2011-12-23 23:05:00 +0530
committerNirbhay Choubey <nirbhay.choubey@oracle.com>2011-12-23 23:05:00 +0530
commita4343d56eda71ab95e8d092cebedfd5abf7c710b (patch)
treed9aca95cf2b8365f593db3f7ddc7ec48f0cb969c /sql-bench/test-alter-table.sh
parent74a8331c084a038cab39a47cbb67c027aa8a9170 (diff)
downloadmariadb-git-a4343d56eda71ab95e8d092cebedfd5abf7c710b.tar.gz
Bug#12809202 61854: MYSQLDUMP --SINGLE-TRANSACTION
--FLUSH-LOG BREAKS CONSISTENCY The transaction started by mysqldump gets committed implicitly when flush-log is specified along with single-transaction option, and hence can break consistency. This is because, COM_REFRESH is executed in order to flush logs and starting from 5.5 this command performs an implicit commit. Fixed by making sure that COM_REFRESH is executed before the transaction has started and not after it. Note : This patch triggers following behavioral changes in mysqldump : 1) After this patch we no longer flush logs before dumping each database if --single-transaction option is given like it was done before (in the absence of --lock-all-tables and --master-data options). 2) Also, after this patch, we start acquiring FTWRL before flushing logs in cases when only --single-transaction and --flush-logs are given. It becomes safe to use mysqldump with these two options and without --master-data parameter for backups.
Diffstat (limited to 'sql-bench/test-alter-table.sh')
0 files changed, 0 insertions, 0 deletions