mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust for better logs
This commit is contained in:
parent
186b1f029b
commit
9ba4639a27
|
@ -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…
Reference in a new issue