diff --git a/weed/storage/volume_read_write.go b/weed/storage/volume_read_write.go index 6cca8d6cf..8e4aad809 100644 --- a/weed/storage/volume_read_write.go +++ b/weed/storage/volume_read_write.go @@ -55,7 +55,7 @@ func (v *Volume) Destroy() (err error) { v.Close() os.Remove(v.FileName() + ".dat") os.Remove(v.FileName() + ".idx") - os.Remove(v.FileName() + ".tier") + os.Remove(v.FileName() + ".vif") os.Remove(v.FileName() + ".sdx") os.Remove(v.FileName() + ".cpd") os.Remove(v.FileName() + ".cpx") diff --git a/weed/storage/volume_tier.go b/weed/storage/volume_tier.go index fecbd13ce..5e27562f7 100644 --- a/weed/storage/volume_tier.go +++ b/weed/storage/volume_tier.go @@ -21,7 +21,7 @@ func (v *Volume) maybeLoadVolumeTierInfo() bool { v.volumeTierInfo = &volume_server_pb.VolumeTierInfo{} - tierFileName := v.FileName() + ".tier" + tierFileName := v.FileName() + ".vif" if exists, canRead, _, _, _ := checkFile(tierFileName); !exists || !canRead { if !exists { @@ -88,7 +88,7 @@ func (v *Volume) LoadRemoteFile() error { func (v *Volume) SaveVolumeTierInfo() error { - tierFileName := v.FileName() + ".tier" + tierFileName := v.FileName() + ".vif" if exists, _, canWrite, _, _ := checkFile(tierFileName); exists && !canWrite { return fmt.Errorf("%s not writable", tierFileName)