aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_grpc_erasure_coding.go
diff options
context:
space:
mode:
authorwusong <75450248+wusongANKANG@users.noreply.github.com>2023-04-18 15:36:55 +0800
committerGitHub <noreply@github.com>2023-04-18 00:36:55 -0700
commita408b46d95e7696aca8175c8f1780316a6f9d4ca (patch)
treebfee2a41bac28daac6c7add3c97fa03dd9a636fa /weed/server/volume_grpc_erasure_coding.go
parent0a22eea55df8462d8fdfc206f4995304ddaca5d9 (diff)
downloadseaweedfs-a408b46d95e7696aca8175c8f1780316a6f9d4ca.tar.xz
seaweedfs-a408b46d95e7696aca8175c8f1780316a6f9d4ca.zip
compilation fail (#4414)
Signed-off-by: Wusong Wang <wangwusong@virtaitech.com> Co-authored-by: Wusong Wang <wangwusong@virtaitech.com>
Diffstat (limited to 'weed/server/volume_grpc_erasure_coding.go')
-rw-r--r--weed/server/volume_grpc_erasure_coding.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/volume_grpc_erasure_coding.go b/weed/server/volume_grpc_erasure_coding.go
index 55659ca0f..a84c163a6 100644
--- a/weed/server/volume_grpc_erasure_coding.go
+++ b/weed/server/volume_grpc_erasure_coding.go
@@ -419,7 +419,7 @@ func (vs *VolumeServer) VolumeEcShardsToVolume(ctx context.Context, req *volume_
return nil, fmt.Errorf("existing collection:%v unexpected input: %v", v.Collection, req.Collection)
}
- for shardId := 0; shardId < DataShardsCount; shardId++ {
+ for shardId := 0; shardId < erasure_coding.DataShardsCount; shardId++ {
if shardFileNames[shardId] == "" {
return nil, fmt.Errorf("ec volume %d missing shard %d", req.VolumeId, shardId)
}