Skip to content

Commit

Permalink
fix3
Browse files Browse the repository at this point in the history
  • Loading branch information
confoc committed May 24, 2024
1 parent 54c86fc commit f7894f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/gtctl/cluster_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func NewCluster(args []string, options *clusterCreateCliOptions, l logger.Logger
opts = append(opts, baremetal.WithReplaceConfig(&cfg))
}

cluster, err = baremetal.NewCluster(l, clusterName, opts...) //ops.metastore
cluster, err = baremetal.NewCluster(l, clusterName, opts...)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cluster/baremetal/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (c *Cluster) Create(ctx context.Context, options *opt.CreateOptions) error
return err
}
}
if err := withSpinner("GreptimeDB Cluster", c.createCluster); err != nil { //options
if err := withSpinner("GreptimeDB Cluster", c.createCluster); err != nil {
if err := c.Wait(ctx, true); err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/components/metasrv.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (m *metaSrv) Start(ctx context.Context, stop context.CancelFunc, binary str
Name: dirName,
logDir: metaSrvLogDir,
pidDir: metaSrvPidDir,
args: m.BuildArgs(i, bindAddr), //如果我传进来就在这里
args: m.BuildArgs(i, bindAddr),
}
if err := runBinary(ctx, stop, option, m.wg, m.logger); err != nil {
return err
Expand Down Expand Up @@ -128,7 +128,7 @@ func (m *metaSrv) BuildArgs(params ...interface{}) []string {
args = GenerateAddrArg("--http-addr", m.config.HTTPAddr, nodeID, args)
args = GenerateAddrArg("--bind-addr", bindAddr, nodeID, args)

if m.metastore == true {
if m.metastore {
metastore := strconv.FormatBool(m.metastore)
args = GenerateAddrArg("--use-memory-store", metastore, nodeID, args)
}
Expand Down

0 comments on commit f7894f9

Please sign in to comment.