Skip to content

Commit

Permalink
store/tikv: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huachaohuang committed Nov 4, 2016
1 parent 9a02ffd commit 68c8f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion store/tikv/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (d Driver) Open(path string) (kv.Storage, error) {
}

// FIXME: uuid will be a very long and ugly string, simplify it.
uuid := fmt.Sprintf("tikv-%v", etcdAddrs)
uuid := fmt.Sprintf("tikv-%v", pdCli.GetClusterID())
if store, ok := mc.cache[uuid]; ok {
return store, nil
}
Expand Down
2 changes: 1 addition & 1 deletion store/tikv/lock_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func NewLockResolver(etcdAddrs []string) (*LockResolver, error) {
if err != nil {
return nil, errors.Trace(err)
}
uuid := fmt.Sprintf("tikv-%v", etcdAddrs)
uuid := fmt.Sprintf("tikv-%v", pdCli.GetClusterID())
s, err := newTikvStore(uuid, &codecPDClient{pdCli}, newRPCClient(), false)
if err != nil {
return nil, errors.Trace(err)
Expand Down

0 comments on commit 68c8f73

Please sign in to comment.