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 <zhongyangguan@gmail.com>
Co-authored-by: disksing <i@disksing.com>
  • Loading branch information
zyguan and disksing committed Aug 16, 2023
1 parent 5968ce9 commit b8bb2c6
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 b8bb2c6

Please sign in to comment.