Skip to content

Commit

Permalink
Update br/pkg/lightning/config/config.go
Browse files Browse the repository at this point in the history
Co-authored-by: glorv <glorvs@163.com>
  • Loading branch information
Ehco1996 and glorv committed Dec 8, 2021
1 parent ec58788 commit cd8752b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br/pkg/lightning/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func (sec *Security) RegisterMySQL() error {

// DeregisterMySQL deregisters the TLS config with security.TLSConfigName
func (sec *Security) DeregisterMySQL() {
if sec == nil {
if sec == nil || len(sec.CAPath) == 0 {
return
}
gomysql.DeregisterTLSConfig(sec.TLSConfigName)
Expand Down

0 comments on commit cd8752b

Please sign in to comment.