mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-09-19 10:16:53 +08:00
reduce max stmt length
This commit is contained in:
@@ -96,7 +96,7 @@ const (
|
|||||||
// See https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
|
// See https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
|
||||||
const (
|
const (
|
||||||
// MaxMysqlPacketLen is the max packet payload length.
|
// MaxMysqlPacketLen is the max packet payload length.
|
||||||
MaxMysqlPacketLen = 4 * 1024 * 1024
|
MaxMysqlPacketLen = 1 * 1024 * 1024
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -115,7 +115,6 @@ func (ms *MysqlSession) checkFinish() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkNode := ms.coverRanges.head.next
|
checkNode := ms.coverRanges.head.next
|
||||||
|
|
||||||
if checkNode.end - checkNode.begin == int64(len(ms.cachedStmtBytes)) {
|
if checkNode.end - checkNode.begin == int64(len(ms.cachedStmtBytes)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user