summaryrefslogtreecommitdiff
path: root/mysql-test/suite
diff options
context:
space:
mode:
authorHe Zhenxing <zhenxing.he@sun.com>2010-06-01 16:59:48 +0800
committerHe Zhenxing <zhenxing.he@sun.com>2010-06-01 16:59:48 +0800
commit84889d030cc35ed7c61ba4b140c6445a0eb76548 (patch)
tree7c271347a98d22bae2d309d5a56cb3ee2f29abad /mysql-test/suite
parenta1b8e4dc7e3c366a3c6db50cc0a7b4f2f6a1e589 (diff)
parent9547a63ded3d6a522dc4edf9a8b77b7e2526300d (diff)
downloadmariadb-git-84889d030cc35ed7c61ba4b140c6445a0eb76548.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/suite')
-rw-r--r--mysql-test/suite/rpl/t/rpl_semi_sync.test4
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;