Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

adjust for better logs

chrislu9ba4639a27c4
diff --git a/weed/util/lock_table.go b/weed/util/lock_table.go
index d10b51334f..4aadf28805 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