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)

Signed-off-by: zyguan <zhongyangguan@gmail.com>
Co-authored-by: disksing <i@disksing.com>
  • Loading branch information
zyguan and disksing committed Jun 21, 2023
1 parent 864a5fc commit 04dc78e
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 @@ -693,6 +693,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 04dc78e

Please sign in to comment.