summaryrefslogtreecommitdiff
path: root/mysql-test/extra
diff options
context:
space:
mode:
author <Dao-Gang.Qu@sun.com>2010-04-28 11:26:47 +0800
committer <Dao-Gang.Qu@sun.com>2010-04-28 11:26:47 +0800
commitfa28ba8ba67ff2d2ac2870408e71a78f6e3d5683 (patch)
treeaffacb067fe3e659bd3ef5ed13854c76d8894906 /mysql-test/extra
parenta1b3955f32cfbb5e43191a3f9fb5f4e967965c25 (diff)
downloadmariadb-git-fa28ba8ba67ff2d2ac2870408e71a78f6e3d5683.tar.gz
Bug #51839 mixup of DDL causes slave to stop
Stored routine DDL statements use statement-based replication regardless of the current binlog format. The problem here was that if a DDL statement failed during metadata lock acquisition or opening of mysql.proc, the binlog format would not be reset before returning. So the following DDL or DML statements are binlogged with a wrong binlog format, which causes the slave to stop. The problem can be resolved by grabbing an exclusive MDL lock firstly instead of clearing the current binlog format. So that the binlog format will not be affected when the lock grab returns directly with an error. The same way is taken to open a proc table for update.
Diffstat (limited to 'mysql-test/extra')
0 files changed, 0 insertions, 0 deletions