From 5d081d5c3cebef824b7d376df211594b62ff8d16 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 30 Apr 2022 20:03:04 -0700 Subject: [PATCH] skip if already copied to remote fix https://github.com/chrislusf/seaweedfs/issues/2993 --- weed/server/volume_grpc_tier_upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/volume_grpc_tier_upload.go b/weed/server/volume_grpc_tier_upload.go index fed15b6ab..c690de959 100644 --- a/weed/server/volume_grpc_tier_upload.go +++ b/weed/server/volume_grpc_tier_upload.go @@ -27,7 +27,7 @@ func (vs *VolumeServer) VolumeTierMoveDatToRemote(req *volume_server_pb.VolumeTi // locate the disk file diskFile, ok := v.DataBackend.(*backend.DiskFile) 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