mirror of https://github.com/tikv/client-go.git
tikv/kv.go: define Lock & LockResolver before updating tidb/br (#250)
This commit is contained in:
parent
ac355144c8
commit
fd1d7d8cdf
11
tikv/kv.go
11
tikv/kv.go
|
|
@ -571,3 +571,14 @@ func NewLockResolver(etcdAddrs []string, security config.Security, opts ...pd.Cl
|
|||
}
|
||||
return s.lockResolver, nil
|
||||
}
|
||||
|
||||
// TODO: remove Lock&LockResolver&TxnStatus once tidb and br are ready.
|
||||
|
||||
// Lock represents a lock from tikv server.
|
||||
type Lock = txnlock.Lock
|
||||
|
||||
// LockResolver resolves locks and also caches resolved txn status.
|
||||
type LockResolver = txnlock.LockResolver
|
||||
|
||||
// TxnStatus represents a txn's final status. It should be Lock or Commit or Rollback.
|
||||
type TxnStatus = txnlock.TxnStatus
|
||||
|
|
|
|||
Loading…
Reference in New Issue