mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 16:07:24 +08:00
avoid wrong error
fix https://github.com/chrislusf/seaweedfs/issues/1691
This commit is contained in:
@@ -61,8 +61,7 @@ func (f *Filer) LoadConfiguration(config *viper.Viper) {
|
|||||||
|
|
||||||
store, found := storeNames[storeName]
|
store, found := storeNames[storeName]
|
||||||
if !found {
|
if !found {
|
||||||
glog.Errorf("path-specific filer store %s.%s is not found", storeName, storeId)
|
continue
|
||||||
os.Exit(-1)
|
|
||||||
}
|
}
|
||||||
store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore)
|
store = reflect.New(reflect.ValueOf(store).Elem().Type()).Interface().(FilerStore)
|
||||||
if err := store.Initialize(config, key+"."); err != nil {
|
if err := store.Initialize(config, key+"."); err != nil {
|
||||||
|
Reference in New Issue
Block a user