Skip to content

Commit

Permalink
Revert "server: fix show problem for kill tidb connection (pingcap#24031
Browse files Browse the repository at this point in the history
) (pingcap#29212)"

This reverts commit 52c6890.
  • Loading branch information
bb7133 committed Mar 3, 2022
1 parent 6bc9cd3 commit 97ac2a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -623,9 +623,6 @@ func (s *Server) ShowProcessList() map[uint64]*util.ProcessInfo {
defer s.rwlock.RUnlock()
rs := make(map[uint64]*util.ProcessInfo, len(s.clients))
for _, client := range s.clients {
if atomic.LoadInt32(&client.status) == connStatusWaitShutdown {
continue
}
if pi := client.ctx.ShowProcess(); pi != nil {
rs[pi.ID] = pi
}
Expand Down

0 comments on commit 97ac2a7

Please sign in to comment.