reduce max stmt length
This commit is contained in:
parent
61c6d83b3a
commit
3294a0fc5f
|
@ -96,7 +96,7 @@ const (
|
|||
// See https://dev.mysql.com/doc/refman/5.7/en/identifiers.html
|
||||
const (
|
||||
// MaxMysqlPacketLen is the max packet payload length.
|
||||
MaxMysqlPacketLen = 4 * 1024 * 1024
|
||||
MaxMysqlPacketLen = 1 * 1024 * 1024
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -115,7 +115,6 @@ func (ms *MysqlSession) checkFinish() bool {
|
|||
}
|
||||
|
||||
checkNode := ms.coverRanges.head.next
|
||||
|
||||
if checkNode.end - checkNode.begin == int64(len(ms.cachedStmtBytes)) {
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue