Skip to content

Commit

Permalink
lock_resolver: let getTxnStatusFromLock return error when backoff tim…
Browse files Browse the repository at this point in the history
…eout (#847) (#881)

Signed-off-by: zyguan <[email protected]>
Co-authored-by: disksing <[email protected]>
  • Loading branch information
zyguan and disksing authored Jul 12, 2023
1 parent 61c3026 commit ef92db1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions txnkv/txnlock/lock_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ func (lr *LockResolver) getTxnStatusFromLock(bo *retry.Backoffer, l *Lock, calle
// success before the primary region.
if err := bo.Backoff(retry.BoTxnNotFound, err); err != nil {
logutil.Logger(bo.GetCtx()).Warn("getTxnStatusFromLock backoff fail", zap.Error(err))
return TxnStatus{}, err
}
}
}
Expand Down

0 comments on commit ef92db1

Please sign in to comment.