summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-09-16 16:03:55 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-09-16 16:03:55 +0400
commit779003e18073332a73ed185410f95acc1ef85094 (patch)
tree379c2e9e3d7186c51dc34a5e331fca70303f4c8b /mysql-test
parent5464e904b6db84cbbdc7aeb90fbb2115166d432f (diff)
downloadmariadb-git-779003e18073332a73ed185410f95acc1ef85094.tar.gz
backport from 10.0
mtr can crash occasionally. This happens when mtr sends to a child mtr process (or vice-versa) a packet, that gets truncated or, perhaps, split in two. Then the other side cannot deserialize it and fails as above.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/lib/My/Test.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/My/Test.pm b/mysql-test/lib/My/Test.pm
index 012e5f6d81e..6fe169398ca 100644
--- a/mysql-test/lib/My/Test.pm
+++ b/mysql-test/lib/My/Test.pm
@@ -70,7 +70,7 @@ sub write_test {
my $serialized= Storable::freeze($test);
$serialized =~ s/([\x0d\x0a\\])/sprintf("\\%02x", ord($1))/eg;
- print $sock $header, "\n", $serialized, "\n";
+ send $sock,$header. "\n". $serialized. "\n", 0;
}