Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pkg/storage/mvcc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5938,9 +5938,11 @@ func MVCCAcquireLock(
// number, our newer sequence number could then be rolled back and
// we would forget that the lock held at the older sequence number
// had been and still should be held.
log.VEventf(ctx, 3, "skipping lock acquisition for txn %s on key %s "+
"with strength %s; found existing lock with strength %s and sequence %d",
txn, key.String(), str.String(), iterStr.String(), foundLock.Txn.Sequence)
if log.ExpensiveLogEnabled(ctx, 3) {
log.VEventf(ctx, 3, "skipping lock acquisition for txn %s on key %s "+
"with strength %s; found existing lock with strength %s and sequence %d",
txn, key, str, iterStr, foundLock.Txn.Sequence)
}
return nil
}

Expand Down