aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-12-28 11:21:49 -0800
committerChris Lu <chris.lu@gmail.com>2019-12-28 11:21:49 -0800
commit2000284435a7f3958cab6e4ed88128b12000da0b (patch)
tree1878d78770e2bdd3c26d7538cac5e3ce6eba4e05 /weed/storage/volume.go
parente8b357fd536974cea2b25ecb5776feae8bce202e (diff)
downloadseaweedfs-2000284435a7f3958cab6e4ed88128b12000da0b.tar.xz
seaweedfs-2000284435a7f3958cab6e4ed88128b12000da0b.zip
rename volume tier info to volume info
Diffstat (limited to 'weed/storage/volume.go')
-rw-r--r--weed/storage/volume.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/storage/volume.go b/weed/storage/volume.go
index 139f433c7..9af70c86f 100644
--- a/weed/storage/volume.go
+++ b/weed/storage/volume.go
@@ -40,7 +40,7 @@ type Volume struct {
isCompacting bool
- volumeTierInfo *volume_server_pb.VolumeTierInfo
+ volumeInfo *volume_server_pb.VolumeInfo
}
func NewVolume(dirname string, collection string, id needle.VolumeId, needleMapKind NeedleMapType, replicaPlacement *super_block.ReplicaPlacement, ttl *needle.TTL, preallocate int64, memoryMapMaxSizeMb uint32) (v *Volume, e error) {
@@ -225,11 +225,11 @@ func (v *Volume) ToVolumeInformationMessage() *master_pb.VolumeInformationMessag
}
func (v *Volume) RemoteStorageNameKey() (storageName, storageKey string) {
- if v.volumeTierInfo == nil {
+ if v.volumeInfo == nil {
return
}
- if len(v.volumeTierInfo.GetFiles()) == 0 {
+ if len(v.volumeInfo.GetFiles()) == 0 {
return
}
- return v.volumeTierInfo.GetFiles()[0].BackendName(), v.volumeTierInfo.GetFiles()[0].GetKey()
+ return v.volumeInfo.GetFiles()[0].BackendName(), v.volumeInfo.GetFiles()[0].GetKey()
}