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
replicated remote.cache
Chris Lu0207f5fe9b93
diff --git a/weed/operation/assign_file_id.go b/weed/operation/assign_file_id.goindex e4b30f0408..8dbdbbe572 100644--- a/weed/operation/assign_file_id.go+++ b/weed/operation/assign_file_id.go@@ -74,7 +74,7 @@ func Assign(masterFn GetMasterFn, grpcDialOption grpc.DialOption, primaryRequestret.PublicUrl = resp.PublicUrlret.Error = resp.Errorret.Auth = security.EncodedJwt(resp.Auth)- for _, r := range ret.Replicas {+ for _, r := range resp.Replicas {ret.Replicas = append(ret.Replicas, AssignResultReplica{Url: r.Url,PublicUrl: r.PublicUrl,diff --git a/weed/server/filer_grpc_server_remote.go b/weed/server/filer_grpc_server_remote.goindex 95cdb7003d..c47356a8e9 100644--- a/weed/server/filer_grpc_server_remote.go+++ b/weed/server/filer_grpc_server_remote.go@@ -62,8 +62,7 @@ func (fs *FilerServer) DownloadToLocal(ctx context.Context, req *filer_pb.Downlo}// detect storage option- // replication level is set to "000" to ensure only need to ask one volume server to fetch the data.- so, err := fs.detectStorageOption(req.Directory, "", "000", 0, "", "", "")+ so, err := fs.detectStorageOption(req.Directory, "", "", 0, "", "", "")if err != nil {return resp, err}diff --git a/weed/server/volume_grpc_remote.go b/weed/server/volume_grpc_remote.goindex de7f2d5941..aff57e52b3 100644--- a/weed/server/volume_grpc_remote.go+++ b/weed/server/volume_grpc_remote.go@@ -10,6 +10,7 @@ import ("github.com/chrislusf/seaweedfs/weed/storage/needle""github.com/chrislusf/seaweedfs/weed/storage/types""sync"+ "time")func (vs *VolumeServer) FetchAndWriteNeedle(ctx context.Context, req *volume_server_pb.FetchAndWriteNeedleRequest) (resp *volume_server_pb.FetchAndWriteNeedleResponse, err error) {@@ -44,6 +45,8 @@ func (vs *VolumeServer) FetchAndWriteNeedle(ctx context.Context, req *volume_ser// copied from *Needle.prepareWriteBuffer()n.Size = 4 + types.Size(n.DataSize) + 1n.Checksum = needle.NewCRC(n.Data)+ n.LastModified = uint64(time.Now().Unix())+ n.SetHasLastModifiedDate()if _, localWriteErr := vs.store.WriteVolumeNeedle(v.Id, n, true, false); localWriteErr != nil {if err == nil {err = fmt.Errorf("local write needle %d size %d: %v", req.NeedleId, req.Size, err)