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

util: use go-deadlock to find deadlock #40288

Merged
merged 15 commits into from
Jan 5, 2023
Prev Previous commit
Next Next commit
use go-deadlock to find deadlock
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Jan 4, 2023
commit ff8ffa114ede157bc4007333aea06c0b3177657b
1 change: 1 addition & 0 deletions server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ go_library(
"//util/printer",
"//util/replayer",
"//util/sqlexec",
"//util/syncutil",
"//util/sys/linux",
"//util/timeutil",
"//util/tls",
Expand Down
3 changes: 2 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import (
"github.com/pingcap/tidb/util/dbterror"
"github.com/pingcap/tidb/util/fastrand"
"github.com/pingcap/tidb/util/logutil"
"github.com/pingcap/tidb/util/syncutil"
"github.com/pingcap/tidb/util/sys/linux"
"github.com/pingcap/tidb/util/timeutil"
"go.uber.org/zap"
Expand Down Expand Up @@ -128,7 +129,7 @@ type Server struct {
driver IDriver
listener net.Listener
socket net.Listener
rwlock sync.RWMutex
rwlock syncutil.RWMutex
concurrentLimiter *TokenLimiter
clients map[uint64]*clientConn
capability uint32
Expand Down