Skip to content

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.

Remote gateway Bug fix (#5100)

Farbodd5c01e5ceb91
diff --git a/weed/filer/remote_mapping.go b/weed/filer/remote_mapping.go
index 8a7bea3d6d..c8adbeb4d5 100644
--- a/weed/filer/remote_mapping.go
+++ b/weed/filer/remote_mapping.go
@@ -15,9 +15,11 @@ func ReadMountMappings(grpcDialOption grpc.DialOption, filerAddress pb.ServerAdd
oldContent, readErr = ReadInsideFiler(client, DirectoryEtcRemote, REMOTE_STORAGE_MOUNT_FILE)
return readErr
}); readErr != nil {
- return nil, readErr
+ if readErr != filer_pb.ErrNotFound {
+ return nil, fmt.Errorf("read existing mapping: %v", readErr)
+ }
+ oldContent = nil
}
-
mappings, readErr = UnmarshalRemoteStorageMappings(oldContent)
if readErr != nil {
return nil, fmt.Errorf("unmarshal mappings: %v", readErr)