Skip to content

Commit

Permalink
plugin: fix static check issues (pingcap#13881)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored and ngaut committed Dec 5, 2019
1 parent ea1662a commit 7d680b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion plugin/conn_ip_example/conn_ip_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ func OnGeneralEvent(ctx context.Context, sctx *variable.SessionVars, event plugi
fmt.Println("conn_ip_example notifiy called")
fmt.Println("variable test: ", variable.GetSysVar("conn_ip_example_test_variable").Value)
fmt.Printf("new connection by %s\n", ctx.Value("ip"))
return
}
4 changes: 1 addition & 3 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ func (p *plugins) clone() *plugins {
for key, value := range p.versions {
np.versions[key] = value
}
for key, value := range p.dyingPlugins {
np.dyingPlugins[key] = value
}
copy(np.dyingPlugins, p.dyingPlugins)
return np
}

Expand Down

0 comments on commit 7d680b7

Please sign in to comment.