Skip to content

Commit

Permalink
Add failpoint session/beforeLoockKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
MyonKeminta committed Aug 18, 2021
1 parent 6501c70 commit 1878448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ func (txn *LazyTxn) Rollback() error {

// LockKeys Wrap the inner transaction's `LockKeys` to record the status
func (txn *LazyTxn) LockKeys(ctx context.Context, lockCtx *kv.LockCtx, keys ...kv.Key) error {
failpoint.Inject("beforeLockKeys", func() {})
t := time.Now()

var originState txninfo.TxnRunningState
Expand Down

0 comments on commit 1878448

Please sign in to comment.