Skip to content

Commit 9846557

Browse files
committed
removed mutex
1 parent 498de31 commit 9846557

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

cluster/cluster.go

-3
Original file line numberDiff line numberDiff line change
@@ -1460,9 +1460,6 @@ func (cluster *Cluster) MonitorSchema() {
14601460
return
14611461
}
14621462

1463-
cmaster.Lock()
1464-
defer cmaster.Unlock()
1465-
14661463
cluster.StateMachine.SetMonitorSchemaState()
14671464
cmaster.Conn.SetConnMaxLifetime(3595 * time.Second)
14681465

cluster/srv.go

-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ type ServerMonitor struct {
194194
ActiveTasks sync.Map
195195
BinaryLogDir string
196196
DBDataDir string
197-
sync.RWMutex
198197
}
199198

200199
type SlaveVariables struct {

0 commit comments

Comments
 (0)