From 9ba4639a27c45f5998e2e13651bbc92ae773a24f Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 23 Sep 2023 11:53:44 -0700 Subject: [PATCH] adjust for better logs --- weed/util/lock_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/lock_table.go b/weed/util/lock_table.go index d10b51334..4aadf2880 100644 --- a/weed/util/lock_table.go +++ b/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