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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
minor
chrislu1df42231952d
diff --git a/weed/util/lock_table.go b/weed/util/lock_table.goindex 8ec93f7e77..2e689d330f 100644--- a/weed/util/lock_table.go+++ b/weed/util/lock_table.go@@ -20,7 +20,6 @@ type LockEntry struct {waiters []*ActiveLock // ordered waiters that are blocked by exclusive locksactiveSharedLockOwnerCount int32activeExclusiveLockOwnerCount int32- lockType LockTypecond *sync.Cond}@@ -93,7 +92,6 @@ func (lt *LockTable[T]) AcquireLock(intention string, key T, lockType LockType)}// Otherwise, grant the lock- entry.lockType = lockTypeif glog.V(4) {fmt.Printf("ActiveLock %d %s locked %+v type=%v with waiters %d active r%d w%d.\n", lock.ID, lock.intention, key, lockType, len(entry.waiters), entry.activeSharedLockOwnerCount, entry.activeExclusiveLockOwnerCount)if len(entry.waiters) > 0 {@@ -140,7 +138,7 @@ func (lt *LockTable[T]) ReleaseLock(key T, lock *ActiveLock) {}if glog.V(4) {- fmt.Printf("ActiveLock %d %s unlocked %+v type=%v with waiters %d active r%d w%d.\n", lock.ID, lock.intention, key, entry.lockType, len(entry.waiters), entry.activeSharedLockOwnerCount, entry.activeExclusiveLockOwnerCount)+ fmt.Printf("ActiveLock %d %s unlocked %+v type=%v with waiters %d active r%d w%d.\n", lock.ID, lock.intention, key, lock.lockType, len(entry.waiters), entry.activeSharedLockOwnerCount, entry.activeExclusiveLockOwnerCount)if len(entry.waiters) > 0 {for _, waiter := range entry.waiters {fmt.Printf(" %d", waiter.ID)