diff options
author | He Zhenxing <zhenxing.he@sun.com> | 2010-06-01 16:59:48 +0800 |
---|---|---|
committer | He Zhenxing <zhenxing.he@sun.com> | 2010-06-01 16:59:48 +0800 |
commit | 1bcba618479af04530d555302c645e6382b1ad01 (patch) | |
tree | 7c271347a98d22bae2d309d5a56cb3ee2f29abad /mysql-test | |
parent | aa28461510d211bd67c668a0922d555964e0d834 (diff) | |
parent | 5725d2303e580bae0a31d361fe3da46146edc170 (diff) | |
download | mariadb-git-1bcba618479af04530d555302c645e6382b1ad01.tar.gz |
BUG#52748 Semi-Sync ACK packet isn't check for length
Check the length and use strncpy to make the code safer.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/suite/rpl/t/rpl_semi_sync.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/suite/rpl/t/rpl_semi_sync.test b/mysql-test/suite/rpl/t/rpl_semi_sync.test index 7610ee68417..1bf4f1a3396 100644 --- a/mysql-test/suite/rpl/t/rpl_semi_sync.test +++ b/mysql-test/suite/rpl/t/rpl_semi_sync.test @@ -602,7 +602,11 @@ source include/stop_slave.inc; UNINSTALL PLUGIN rpl_semi_sync_slave; connection master; +# The dump thread may still be running on the master, and so the following +# UNINSTALL could generate a warning about the plugin is busy. +disable_warnings; UNINSTALL PLUGIN rpl_semi_sync_master; +enable_warnings; connection slave; source include/start_slave.inc; |