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
fix waiting condition
chrisluc43238b30a36
diff --git a/weed/util/lock_table.go b/weed/util/lock_table.goindex b27104a11e..fd6e1987ab 100644--- a/weed/util/lock_table.go+++ b/weed/util/lock_table.go@@ -65,7 +65,7 @@ func (lt *LockTable[T]) AcquireLock(intention string, key T, lockType LockType)// If the lock is held exclusively, waitentry.mu.Lock()- if len(entry.waiters) > 0 || lockType == ExclusiveLock {+ if len(entry.waiters) > 0 || lockType == ExclusiveLock || entry.activeExclusiveLockOwnerCount > 0 {if glog.V(4) {fmt.Printf("ActiveLock %d %s wait for %+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 {