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
volume server: add a fix for dead lock
Chris Lubdbe5ddbe9cd
diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.goindex dce800242f..edb5f48d81 100644--- a/weed/storage/volume_read_write.go+++ b/weed/storage/volume_read_write.go@@ -76,7 +76,7 @@ func (v *Volume) syncWrite(n *needle.Needle) (offset uint64, size uint32, isUnchdefer v.dataFileAccessLock.Unlock()if MaxPossibleVolumeSize < v.nm.ContentSize()+uint64(actualSize) {- err = fmt.Errorf("volume size limit %d exceeded! current size is %d", MaxPossibleVolumeSize, v.ContentSize())+ err = fmt.Errorf("volume size limit %d exceeded! current size is %d", MaxPossibleVolumeSize, v.nm.ContentSize())return}if v.isFileUnchanged(n) {@@ -190,7 +190,7 @@ func (v *Volume) syncDelete(n *needle.Needle) (uint32, error) {defer v.dataFileAccessLock.Unlock()if MaxPossibleVolumeSize < v.nm.ContentSize()+uint64(actualSize) {- err := fmt.Errorf("volume size limit %d exceeded! current size is %d", MaxPossibleVolumeSize, v.ContentSize())+ err := fmt.Errorf("volume size limit %d exceeded! current size is %d", MaxPossibleVolumeSize, v.nm.ContentSize())return 0, err}