Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix when show tables record too much error log "Got unhandled packet.." #8478

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions go/mysql/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,11 @@ func (c *Conn) handleNextCommand(handler Handler) bool {
case ComResetConnection:
c.handleComResetConnection(handler)
return true
case ComFieldList:
c.recycleReadPacket()
if !c.writeErrorAndLog(ERUnknownComError, SSNetError, "command handling not implemented yet: %v", data[0]) {
return false
}

default:
log.Errorf("Got unhandled packet (default) from %s, returning error: %v", c, data)
Expand Down
3 changes: 3 additions & 0 deletions go/mysql/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ const (
// ComQuery is COM_QUERY.
ComQuery = 0x03

// ComFieldList is COM_Field_List.
ComFieldList = 0x04

// ComPing is COM_PING.
ComPing = 0x0e

Expand Down