Skip to content

Commit

Permalink
Update server/server.go
Browse files Browse the repository at this point in the history
Co-authored-by: djshow832 <[email protected]>
  • Loading branch information
AilinKid and djshow832 authored Apr 1, 2021
1 parent 0c18e2a commit 003448c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (s *Server) onConn(conn *clientConn) {
err = plugin.ForeachPlugin(plugin.Audit, func(p *plugin.Plugin) error {
// Audit plugin may be disabled before a conn is created, leading no connectionInfo in sessionVars.
if sessionVars.ConnectionInfo == nil {
conn.ctx.GetSessionVars().ConnectionInfo = conn.connectInfo()
sessionVars.ConnectionInfo = conn.connectInfo()
}
authPlugin := plugin.DeclareAuditManifest(p.Manifest)
if authPlugin.OnConnectionEvent != nil {
Expand Down

0 comments on commit 003448c

Please sign in to comment.