Skip to content

Commit

Permalink
tidb-server: move "setupMetrics" to the front of "createStoreAndDomai…
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored and coocood committed Jun 28, 2018
1 parent 56135f4 commit 79df983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ func main() {
setupTracing() // Should before createServer and after setup config.
printInfo()
setupBinlogClient()
setupMetrics()
createStoreAndDomain()
createServer()
setupSignalHandler()
setupMetrics()
runServer()
cleanup()
os.Exit(0)
Expand Down

0 comments on commit 79df983

Please sign in to comment.