Browse Source
compilation fail (#4414)
Signed-off-by: Wusong Wang <wangwusong@virtaitech.com>
Co-authored-by: Wusong Wang <wangwusong@virtaitech.com>
pull/4415/head
wusong
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
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] == "" { |
|
|
if shardFileNames[shardId] == "" { |
|
|
return nil, fmt.Errorf("ec volume %d missing shard %d", req.VolumeId, shardId) |
|
|
return nil, fmt.Errorf("ec volume %d missing shard %d", req.VolumeId, shardId) |
|
|
} |
|
|
} |
|
|