tikv/kv.go: define NewLock since both tidb and br are using them (#251)

This commit is contained in:
Shirly 2021-07-23 15:30:51 +08:00 committed by GitHub
parent fd1d7d8cdf
commit 3d747cd203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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)
}