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 (tikv#847)

Signed-off-by: zyguan <[email protected]>
Co-authored-by: disksing <[email protected]>
  • Loading branch information
zyguan and disksing committed Jun 30, 2023
1 parent fc18f67 commit 768c2ea
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 @@ -608,6 +608,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 768c2ea

Please sign in to comment.