Skip to content

Commit

Permalink
fix panic when failed to create pdclient
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Aug 17, 2023
1 parent 1421b3a commit aae73d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/driver/tikv_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ func (d TiKVDriver) OpenWithOptions(path string, options ...Option) (resStore kv
),
pd.WithCustomTimeoutOption(time.Duration(d.pdConfig.PDServerTimeout)*time.Second),
pd.WithForwardingOption(config.GetGlobalConfig().EnableForwarding))
pdCli = util.InterceptedPDClient{Client: pdCli}

if err != nil {
return nil, errors.Trace(err)
}
pdCli = util.InterceptedPDClient{Client: pdCli}

// FIXME: uuid will be a very long and ugly string, simplify it.
uuid := fmt.Sprintf("tikv-%v", pdCli.GetClusterID(context.TODO()))
Expand Down

0 comments on commit aae73d8

Please sign in to comment.