diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-27 21:40:51 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-27 21:40:51 -0700 |
| commit | 217cde0a3bdb676e4a68959ca2aec0e7c82e2f7d (patch) | |
| tree | 6e7818e20e9642eac208177cc06ee8375079e544 /weed/server/volume_grpc_erasure_coding.go | |
| parent | 03b9291e5da8a25a9c8a968de752e331da60ef7c (diff) | |
| download | seaweedfs-217cde0a3bdb676e4a68959ca2aec0e7c82e2f7d.tar.xz seaweedfs-217cde0a3bdb676e4a68959ca2aec0e7c82e2f7d.zip | |
refactoring
Diffstat (limited to 'weed/server/volume_grpc_erasure_coding.go')
| -rw-r--r-- | weed/server/volume_grpc_erasure_coding.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/volume_grpc_erasure_coding.go b/weed/server/volume_grpc_erasure_coding.go index aa0f80442..6cb826d30 100644 --- a/weed/server/volume_grpc_erasure_coding.go +++ b/weed/server/volume_grpc_erasure_coding.go @@ -151,11 +151,11 @@ func (vs *VolumeServer) VolumeEcShardsUnmount(ctx context.Context, req *volume_s func (vs *VolumeServer) VolumeEcShardRead(req *volume_server_pb.VolumeEcShardReadRequest, stream volume_server_pb.VolumeServer_VolumeEcShardReadServer) error { - ecShards, found := vs.store.HasEcShard(needle.VolumeId(req.VolumeId)) + ecVolume, found := vs.store.FindEcVolume(needle.VolumeId(req.VolumeId)) if !found { return fmt.Errorf("not found ec volume id %d", req.VolumeId) } - ecShard, found := ecShards.FindEcVolumeShard(erasure_coding.ShardId(req.ShardId)) + ecShard, found := ecVolume.FindEcVolumeShard(erasure_coding.ShardId(req.ShardId)) if !found { return fmt.Errorf("not found ec shard %d.%d", req.VolumeId, req.ShardId) } |
