This commit is contained in:
hebo
2019-09-09 09:58:14 +08:00
parent a33768d2fb
commit 61c6d83b3a
2 changed files with 17 additions and 20 deletions

View File

@@ -110,11 +110,13 @@ func (ms *MysqlSession) readFromServer(bytes []byte) {
}
func (ms *MysqlSession) checkFinish() bool {
if ms.coverRanges.head == nil {
if ms.coverRanges.head == nil || ms.coverRanges.head.next == nil {
return false
}
if ms.coverRanges.head.end - ms.coverRanges.head.begin == int64(len(ms.cachedStmtBytes)) {
checkNode := ms.coverRanges.head.next
if checkNode.end - checkNode.begin == int64(len(ms.cachedStmtBytes)) {
return true
}