Skip to content

Commit

Permalink
Merge pull request #6197 from planetscale/morgo-fix-timeout
Browse files Browse the repository at this point in the history
Backport tablet timeout issue
  • Loading branch information
morgo authored May 19, 2020
2 parents 96619f8 + 56c3a98 commit d0580c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/cmd/vttablet/vttablet.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ func main() {

servenv.ParseFlags("vttablet")

tabletenv.Init()
// Load current config after tabletenv.Init, because it changes it.
config := tabletenv.NewCurrentConfig()
if err := config.Verify(); err != nil {
log.Exitf("invalid config: %v", err)
}

tabletenv.Init()
if *tabletConfig != "" {
bytes, err := ioutil.ReadFile(*tabletConfig)
if err != nil {
Expand Down

0 comments on commit d0580c9

Please sign in to comment.