diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-27 11:59:03 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-27 11:59:03 -0700 |
| commit | b4b407e4038943ca5b7dc440d2848f23c11b73ca (patch) | |
| tree | f90a49fa2cac3361efa224b13c0ecfaade054b76 /weed/shell/command_ec_encode.go | |
| parent | a4f3d82c57bca13321dca257891836ff36c7eca5 (diff) | |
| download | seaweedfs-b4b407e4038943ca5b7dc440d2848f23c11b73ca.tar.xz seaweedfs-b4b407e4038943ca5b7dc440d2848f23c11b73ca.zip | |
add grpc ec shard read
Diffstat (limited to 'weed/shell/command_ec_encode.go')
| -rw-r--r-- | weed/shell/command_ec_encode.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index e0d028392..499c8a32e 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -208,7 +208,7 @@ func oneServerCopyEcShardsFromSource(ctx context.Context, grpcDialOption grpc.Di _, copyErr := volumeServerClient.VolumeEcShardsCopy(ctx, &volume_server_pb.VolumeEcShardsCopyRequest{ VolumeId: uint32(volumeId), Collection: collection, - EcIndexes: copiedShardIds, + ShardIds: copiedShardIds, SourceDataNode: existingLocation.Url, }) if copyErr != nil { @@ -219,7 +219,7 @@ func oneServerCopyEcShardsFromSource(ctx context.Context, grpcDialOption grpc.Di _, mountErr := volumeServerClient.VolumeEcShardsMount(ctx, &volume_server_pb.VolumeEcShardsMountRequest{ VolumeId: uint32(volumeId), Collection: collection, - EcIndexes: copiedShardIds, + ShardIds: copiedShardIds, }) if mountErr != nil { return mountErr @@ -243,7 +243,7 @@ func sourceServerDeleteEcShards(ctx context.Context, grpcDialOption grpc.DialOpt return operation.WithVolumeServerClient(sourceLocation.Url, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error { _, deleteErr := volumeServerClient.VolumeEcShardsDelete(ctx, &volume_server_pb.VolumeEcShardsDeleteRequest{ VolumeId: uint32(volumeId), - EcIndexes: toBeDeletedShardIds, + ShardIds: toBeDeletedShardIds, ShouldDeleteEcx: shouldDeleteEcx, }) return deleteErr |
