mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
skip if already copied to remote
fix https://github.com/chrislusf/seaweedfs/issues/2993
This commit is contained in:
parent
1aae7a3f1b
commit
5d081d5c3c
|
@ -27,7 +27,7 @@ func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTi
|
||||||
// locate the disk file
|
// locate the disk file
|
||||||
diskFile, ok := v.DataBackend.(*backend.DiskFile)
|
diskFile, ok := v.DataBackend.(*backend.DiskFile)
|
||||||
if !ok {
|
if !ok {
|
||||||
return fmt.Errorf("volume %d is not on local disk", req.VolumeId)
|
return nil // already copied to remove. fmt.Errorf("volume %d is not on local disk", req.VolumeId)
|
||||||
}
|
}
|
||||||
|
|
||||||
// check valid storage backend type
|
// check valid storage backend type
|
||||||
|
|
Loading…
Reference in a new issue