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
filer conf: support json conf only
Chris Lu5931a2f53f57
diff --git a/weed/filer/filer_conf.go b/weed/filer/filer_conf.goindex 0328fdbff4..d56db3b8e6 100644--- a/weed/filer/filer_conf.go+++ b/weed/filer/filer_conf.go@@ -9,7 +9,6 @@ import ("github.com/chrislusf/seaweedfs/weed/pb/filer_pb""github.com/chrislusf/seaweedfs/weed/util""github.com/golang/protobuf/jsonpb"- "github.com/golang/protobuf/proto""github.com/viant/ptrie")@@ -61,15 +60,7 @@ func (fc *FilerConf) LoadFromBytes(data []byte) (err error) {conf := &filer_pb.FilerConf{}if err := jsonpb.Unmarshal(bytes.NewReader(data), conf); err != nil {-- err = proto.UnmarshalText(string(data), conf)- if err != nil {- glog.Errorf("unable to parse filer conf: %v", err)- // this is not recoverable- return nil- }-- return nil+ return err}return fc.doLoadConf(conf)