filer conf: delete location specific configuration

This commit is contained in:
Chris Lu
2020-11-15 20:15:47 -08:00
parent 2bd6fd3bbe
commit ee2fa14dbe
3 changed files with 46 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/storage/needle"
"github.com/golang/protobuf/proto"
"github.com/viant/ptrie"
)
@@ -143,5 +144,6 @@ func IsRename(event *SubscribeMetadataResponse) bool {
var _ = ptrie.KeyProvider(&FilerConf_PathConf{})
func (fp *FilerConf_PathConf) Key() interface{} {
return fp.LocationPrefix
key, _ := proto.Marshal(fp)
return string(key)
}