reduce max stmt length

This commit is contained in:
hebo 2019-09-09 10:12:06 +08:00
parent 61c6d83b3a
commit 3294a0fc5f
2 changed files with 1 additions and 2 deletions

View File

@ -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 (

View File

@ -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
}