Update go-mysql to fix performance issue (#5554)

This commit is contained in:
Roman Tkachenko 2021-02-11 17:31:56 -08:00 committed by GitHub
parent 3458976501
commit e235dfa35a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 4 deletions

2
go.mod
View file

@ -111,5 +111,5 @@ replace (
github.com/coreos/go-oidc => github.com/gravitational/go-oidc v0.0.3
github.com/gogo/protobuf => github.com/gravitational/protobuf v1.3.2-0.20201123192827-2b9fcfaffcbf
github.com/iovisor/gobpf => github.com/gravitational/gobpf v0.0.1
github.com/siddontang/go-mysql v1.1.0 => github.com/gravitational/go-mysql v1.1.1-0.20201221203007-8ef34676bbc0
github.com/siddontang/go-mysql v1.1.0 => github.com/gravitational/go-mysql v1.1.1-0.20210212011549-886316308a77
)

4
go.sum
View file

@ -296,6 +296,10 @@ github.com/gravitational/form v0.0.0-20151109031454-c4048f792f70 h1:To76nCJtM3DI
github.com/gravitational/form v0.0.0-20151109031454-c4048f792f70/go.mod h1:88hFR45MpUd23d2vNWE/dYtesU50jKsbz0I9kH7UaBY=
github.com/gravitational/go-mysql v1.1.1-0.20201221203007-8ef34676bbc0 h1:oN3ip7mSVgX+14rc13yJh+rUpdzmO/DHJH+GzX9+dnY=
github.com/gravitational/go-mysql v1.1.1-0.20201221203007-8ef34676bbc0/go.mod h1:re0JQZ1Cy5dVlIDGq0YksfDIla/GRZlxqOoC0XPSSGE=
github.com/gravitational/go-mysql v1.1.1-0.20210212004040-43bb2767cdd8 h1:MI86GrervmRuE+8QcOPFX7ArqVk3lHHy0Hv5sR/Lmwo=
github.com/gravitational/go-mysql v1.1.1-0.20210212004040-43bb2767cdd8/go.mod h1:re0JQZ1Cy5dVlIDGq0YksfDIla/GRZlxqOoC0XPSSGE=
github.com/gravitational/go-mysql v1.1.1-0.20210212011549-886316308a77 h1:ivambM2XeST8qfxeSm+0Y8CP/DlNbS3o/9tSF2KtGFk=
github.com/gravitational/go-mysql v1.1.1-0.20210212011549-886316308a77/go.mod h1:re0JQZ1Cy5dVlIDGq0YksfDIla/GRZlxqOoC0XPSSGE=
github.com/gravitational/go-oidc v0.0.3 h1:VKhztRfuXq5KVcAPAEagF2y9rjoNgEXvZ/5PsRX9qt8=
github.com/gravitational/go-oidc v0.0.3/go.mod h1:SevmOUNdOB0aD9BAIgjptZ6oHkKxMZZgA70nwPfgU/w=
github.com/gravitational/gobpf v0.0.1 h1:1NufkXUOOt/farCC4juGZ8FFU1qmA+2Zb4lPaVfUFoE=

View file

@ -44,6 +44,8 @@ func NewConn(conn net.Conn, user string, password string, h Handler) (*Conn, err
p.AddUser(user, password)
salt, _ := RandomBuf(20)
defaultServer := NewDefaultServer()
var packetConn *packet.Conn
if defaultServer.tlsConfig != nil {
packetConn = packet.NewTLSConn(conn)

View file

@ -8,8 +8,6 @@ import (
. "github.com/siddontang/go-mysql/mysql"
)
var defaultServer = NewDefaultServer()
// Defines a basic MySQL server with configs.
//
// We do not aim at implementing the whole MySQL connection suite to have the best compatibilities for the clients.

2
vendor/modules.txt vendored
View file

@ -422,7 +422,7 @@ github.com/siddontang/go/sync2
# github.com/siddontang/go-log v0.0.0-20180807004314-8d05993dda07
github.com/siddontang/go-log/log
github.com/siddontang/go-log/loggers
# github.com/siddontang/go-mysql v1.1.0 => github.com/gravitational/go-mysql v1.1.1-0.20201221203007-8ef34676bbc0
# github.com/siddontang/go-mysql v1.1.0 => github.com/gravitational/go-mysql v1.1.1-0.20210212011549-886316308a77
## explicit
github.com/siddontang/go-mysql/client
github.com/siddontang/go-mysql/mysql