Browse Source

adjust for better logs

pull/4863/head
chrislu 1 year ago
parent
commit
9ba4639a27
  1. 2
      weed/util/lock_table.go

2
weed/util/lock_table.go

@ -89,7 +89,6 @@ func (lt *LockTable[T]) AcquireLock(intention string, key T, lockType LockType)
entry.cond.Broadcast()
}
}
entry.activeLockOwnerCount++
// Otherwise, grant the lock
entry.lockType = lockType
@ -102,6 +101,7 @@ func (lt *LockTable[T]) AcquireLock(intention string, key T, lockType LockType)
fmt.Printf("\n")
}
}
entry.activeLockOwnerCount++
entry.mu.Unlock()
return lock

Loading…
Cancel
Save