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 buff use (#4628)
wusongc44a6552d277
diff --git a/weed/mount/weedfs_file_read.go b/weed/mount/weedfs_file_read.goindex 95377d9e9f..11ff07641c 100644--- a/weed/mount/weedfs_file_read.go+++ b/weed/mount/weedfs_file_read.go@@ -58,13 +58,13 @@ func (wfs *WFS) Read(cancel <-chan struct{}, in *fuse.ReadIn, buff []byte) (fuseif bytes.Compare(mirrorData, buff[:totalRead]) != 0 {againBuff := make([]byte, len(buff))- againRead, _ := readDataByFileHandle(buff, fh, offset)+ againRead, _ := readDataByFileHandle(againBuff, fh, offset)againCorrect := bytes.Compare(mirrorData, againBuff[:againRead]) == 0againSame := bytes.Compare(buff[:totalRead], againBuff[:againRead]) == 0fmt.Printf("\ncompare %v [%d,%d) size:%d againSame:%v againCorrect:%v\n", fh.mirrorFile.Name(), offset, offset+totalRead, totalRead, againSame, againCorrect)//fmt.Printf("read mirrow data: %v\n", mirrorData)- //fmt.Printf("read actual data: %v\n", buff[:totalRead])+ //fmt.Printf("read actual data: %v\n", againBuff[:totalRead])}}