mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 20:59:42 +08:00
rename from .tier to .vif
This commit is contained in:
parent
b3c83f9404
commit
e8b357fd53
@ -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")
|
||||
|
@ -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…
Reference in New Issue
Block a user