diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-12-28 11:21:49 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-12-28 11:21:49 -0800 |
| commit | 2000284435a7f3958cab6e4ed88128b12000da0b (patch) | |
| tree | 1878d78770e2bdd3c26d7538cac5e3ce6eba4e05 /weed/server/volume_grpc_tier_upload.go | |
| parent | e8b357fd536974cea2b25ecb5776feae8bce202e (diff) | |
| download | seaweedfs-2000284435a7f3958cab6e4ed88128b12000da0b.tar.xz seaweedfs-2000284435a7f3958cab6e4ed88128b12000da0b.zip | |
rename volume tier info to volume info
Diffstat (limited to 'weed/server/volume_grpc_tier_upload.go')
| -rw-r--r-- | weed/server/volume_grpc_tier_upload.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/server/volume_grpc_tier_upload.go b/weed/server/volume_grpc_tier_upload.go index 6e430f783..d60aa5c3a 100644 --- a/weed/server/volume_grpc_tier_upload.go +++ b/weed/server/volume_grpc_tier_upload.go @@ -43,7 +43,7 @@ func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTi // check whether the existing backend storage is the same as requested // if same, skip backendType, backendId := backend.BackendNameToTypeId(req.DestinationBackendName) - for _, remoteFile := range v.GetVolumeTierInfo().GetFiles() { + for _, remoteFile := range v.GetVolumeInfo().GetFiles() { if remoteFile.BackendType == backendType && remoteFile.BackendId == backendId { return fmt.Errorf("destination %s already exists", req.DestinationBackendName) } @@ -74,7 +74,7 @@ func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTi } // save the remote file to volume tier info - v.GetVolumeTierInfo().Files = append(v.GetVolumeTierInfo().GetFiles(), &volume_server_pb.RemoteFile{ + v.GetVolumeInfo().Files = append(v.GetVolumeInfo().GetFiles(), &volume_server_pb.RemoteFile{ BackendType: backendType, BackendId: backendId, Key: key, @@ -84,7 +84,7 @@ func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTi Extension: ".dat", }) - if err := v.SaveVolumeTierInfo(); err != nil { + if err := v.SaveVolumeInfo(); err != nil { return fmt.Errorf("volume %d fail to save remote file info: %v", v.Id, err) } |
