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) (#947)

Signed-off-by: zyguan <[email protected]>
Co-authored-by: disksing <[email protected]>
  • Loading branch information
zyguan and disksing authored Aug 16, 2023
1 parent 5968ce9 commit 6f24429
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 @@ -687,6 +687,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 6f24429

Please sign in to comment.