mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
more detailed error
related to https://github.com/seaweedfs/seaweedfs/issues/3528
This commit is contained in:
parent
f5156cf3a8
commit
e0f4366f4c
|
@ -511,12 +511,12 @@ func (s *Store) ConfigureVolume(i needle.VolumeId, replication string) error {
|
||||||
vifFile := filepath.Join(location.Directory, baseFileName+".vif")
|
vifFile := filepath.Join(location.Directory, baseFileName+".vif")
|
||||||
volumeInfo, _, _, err := volume_info.MaybeLoadVolumeInfo(vifFile)
|
volumeInfo, _, _, err := volume_info.MaybeLoadVolumeInfo(vifFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("volume %d fail to load vif", i)
|
return fmt.Errorf("volume %d fail to load vif: %v", i, err)
|
||||||
}
|
}
|
||||||
volumeInfo.Replication = replication
|
volumeInfo.Replication = replication
|
||||||
err = volume_info.SaveVolumeInfo(vifFile, volumeInfo)
|
err = volume_info.SaveVolumeInfo(vifFile, volumeInfo)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("volume %d fail to save vif", i)
|
return fmt.Errorf("volume %d fail to save vif: %v", i, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue