Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Dec 27, 2019
1 parent 1e24cde commit 759005e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,8 @@ func (s *Server) reloadConfigFromKV() error {
log.Info("server disable region storage")
}

// The request only valid when there is a leader.
// And before the a PD becomes a leader it will firstly reload the config.
if s.cfg.EnableConfigManager {
err = s.cfgManager.Reload(s.storage)
return err
Expand Down

0 comments on commit 759005e

Please sign in to comment.