mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-04-26 01:02:25 +08:00
Merge pull request #393 from percona/PT-1709
PT-1709 Ignoring invalid mysql packets
This commit is contained in:
+2
-2
@@ -8958,9 +8958,9 @@ sub detect_compression {
|
|||||||
PTDEBUG && _d('Client is using compression');
|
PTDEBUG && _d('Client is using compression');
|
||||||
$session->{compress} = 1;
|
$session->{compress} = 1;
|
||||||
|
|
||||||
$packet->{data} = $packet->{mysql_hdr} . $packet->{data};
|
$packet->{data} = $packet->{mysql_hdr} . $packet->{data} if $packet->{mysql_hdr};
|
||||||
return 0 unless $self->uncompress_packet($packet, $session);
|
return 0 unless $self->uncompress_packet($packet, $session);
|
||||||
remove_mysql_header($packet);
|
remove_mysql_header($packet) if $packet->{mysql_hdr};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PTDEBUG && _d('Client is NOT using compression');
|
PTDEBUG && _d('Client is NOT using compression');
|
||||||
|
|||||||
Reference in New Issue
Block a user