Skip to content

Commit

Permalink
concurrency: remove soon to be obselete validation
Browse files Browse the repository at this point in the history
Soon, we'll be introducing lock promotion, which makes this validation
obsolete.

References #110435

Release note: None
  • Loading branch information
arulajmani committed Feb 22, 2024
1 parent a0620a9 commit cc6146f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/kv/kvserver/concurrency/lock_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3947,13 +3947,6 @@ func (kl *keyLocks) verify(st *cluster.Settings) error {
for e1 := kl.queuedLockingRequests.Front(); e1 != nil; e1 = e1.Next() {
qlr := e1.Value

// Queued locking requests should not belong to a transaction that already
// holds a lock.
if qlr.guard.txnMeta() != nil {
if _, found := kl.heldBy[qlr.guard.txnMeta().ID]; found {
return errors.AssertionFailedf("queued locking request belongs to the lock holder txn %s", kl)
}
}
if !qlr.active { // not actively waiting; nothing more to check for inactive waiters
continue
}
Expand Down

0 comments on commit cc6146f

Please sign in to comment.