Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
Signed-off-by: cfzjywxk <[email protected]>
  • Loading branch information
cfzjywxk committed Jan 17, 2024
1 parent a35e806 commit 9f38a75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions txnkv/transaction/pessimistic.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ func (action actionPessimisticLock) handleSingleBatch(
for _, m := range mutations {
keys = append(keys, hex.EncodeToString(m.Key))
}
//logutil.BgLogger().Info(
// "[failpoint] injected lock ttl = 1 on pessimistic lock",
// zap.Uint64("txnStartTS", c.startTS), zap.Strings("keys", keys),
//)
logutil.BgLogger().Info(
"[failpoint] injected lock ttl = 1 on pessimistic lock",
zap.Uint64("txnStartTS", c.startTS), zap.Strings("keys", keys),
)
}
req.PessimisticLock().LockTtl = ttl
if _, err := util.EvalFailpoint("PessimisticLockErrWriteConflict"); err == nil {
Expand Down

0 comments on commit 9f38a75

Please sign in to comment.