From 8438fb0cc365232d5feb4a1faa08a07d2064ac7a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 28 Nov 2020 02:21:16 -0800 Subject: [PATCH] fix ec shard spreading error --- weed/server/volume_grpc_erasure_coding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/volume_grpc_erasure_coding.go b/weed/server/volume_grpc_erasure_coding.go index 186c6eafc..33d7c1149 100644 --- a/weed/server/volume_grpc_erasure_coding.go +++ b/weed/server/volume_grpc_erasure_coding.go @@ -111,7 +111,7 @@ func (vs *VolumeServer) VolumeEcShardsCopy(ctx context.Context, req *volume_serv } dataBaseFileName := storage.VolumeFileName(location.Directory, req.Collection, int(req.VolumeId)) - indexBaseFileName := storage.VolumeFileName(location.Directory, req.Collection, int(req.VolumeId)) + indexBaseFileName := storage.VolumeFileName(location.IdxDirectory, req.Collection, int(req.VolumeId)) err := operation.WithVolumeServerClient(req.SourceDataNode, vs.grpcDialOption, func(client volume_server_pb.VolumeServerClient) error {