mirror of https://github.com/tikv/client-go.git
tikv/kv.go: define NewLock since both tidb and br are using them (#251)
This commit is contained in:
parent
fd1d7d8cdf
commit
3d747cd203
|
|
@ -582,3 +582,8 @@ type LockResolver = txnlock.LockResolver
|
|||
|
||||
// TxnStatus represents a txn's final status. It should be Lock or Commit or Rollback.
|
||||
type TxnStatus = txnlock.TxnStatus
|
||||
|
||||
// NewLock creates a new *Lock.
|
||||
func NewLock(l *kvrpcpb.LockInfo) *Lock {
|
||||
return txnlock.NewLock(l)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue