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 wrong alignment fix
Chris Luf3b99cbfe5dd
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.goindex 5f65dc89e6..020dc7c74a 100644--- a/weed/storage/volume_vacuum.go+++ b/weed/storage/volume_vacuum.go@@ -195,8 +195,8 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI//ensure file writing starting from aligned positionsif offset%NeedlePaddingSize != 0 {offset = offset + (NeedlePaddingSize - offset%NeedlePaddingSize)- if offset, err = v.dataFile.Seek(offset, 0); err != nil {- glog.V(0).Infof("failed to align in datafile %s: %v", v.dataFile.Name(), err)+ if offset, err = dst.Seek(offset, 0); err != nil {+ glog.V(0).Infof("failed to align in datafile %s: %v", dst.Name(), err)return}}