Browse Source

rename from .tier to .vif

pull/1189/head
Chris Lu 5 years ago
parent
commit
e8b357fd53
  1. 2
      weed/storage/volume_read_write.go
  2. 4
      weed/storage/volume_tier.go

2
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")

4
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)

Loading…
Cancel
Save