Skip to content

Commit

Permalink
feat: auto config for vttablet
Browse files Browse the repository at this point in the history
  • Loading branch information
earayu committed Dec 18, 2024
1 parent 5aa606f commit 5344137
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/cmd/vttablet/vttablet.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func main() {
mysqld := mysqlctl.NewMysqld(config.DB)
server_id, err := mysqld.GetServerID(context.Background())
if err != nil {
log.Warningf("failed to get server id: %v", err)
log.Exitf("failed to get server id: %v", err)
}
tabletPath = fmt.Sprintf("%s-%010d", cell, server_id)
if tabletPath == "" {
Expand Down Expand Up @@ -176,7 +176,7 @@ func initConfig() *tabletenv.TabletConfig {

var socketFile string
if !config.DB.HasGlobalSettings() {
log.Exitf("no db_host or db_socket file specified")
log.Error("no db_host or db_socket file specified")
} else {
log.Info("connection parameters were specified. Not loading my.cnf.")
}
Expand Down

0 comments on commit 5344137

Please sign in to comment.