Skip to content

Commit

Permalink
session: Add failpoint session/beforeLoockKeys (pingcap#27332) (pingc…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Sep 7, 2021
1 parent 142abea commit cd8fb24
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 @@ -377,6 +377,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 cd8fb24

Please sign in to comment.