aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-14 15:10:27 -0500
committerGitHub <noreply@github.com>2022-09-14 13:10:27 -0700
commitc30f6abb11d74e494abac011d1e98576aaa33bda (patch)
tree70550be48a5350171f377928abd5714e96a8679d
parent12914af4d8aeed2f986e27562578792ae94d6092 (diff)
downloadseaweedfs-c30f6abb11d74e494abac011d1e98576aaa33bda.tar.xz
seaweedfs-c30f6abb11d74e494abac011d1e98576aaa33bda.zip
refactor(command_ec_rebuild): `rebultErr` -> `rebuildErr` (#3679)
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
-rw-r--r--weed/shell/command_ec_rebuild.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_ec_rebuild.go b/weed/shell/command_ec_rebuild.go
index e638d3eed..2131c5649 100644
--- a/weed/shell/command_ec_rebuild.go
+++ b/weed/shell/command_ec_rebuild.go
@@ -178,14 +178,14 @@ func rebuildOneEcVolume(commandEnv *CommandEnv, rebuilder *EcNode, collection st
func generateMissingShards(grpcDialOption grpc.DialOption, collection string, volumeId needle.VolumeId, sourceLocation pb.ServerAddress) (rebuiltShardIds []uint32, err error) {
err = operation.WithVolumeServerClient(false, sourceLocation, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {
- resp, rebultErr := volumeServerClient.VolumeEcShardsRebuild(context.Background(), &volume_server_pb.VolumeEcShardsRebuildRequest{
+ resp, rebuildErr := volumeServerClient.VolumeEcShardsRebuild(context.Background(), &volume_server_pb.VolumeEcShardsRebuildRequest{
VolumeId: uint32(volumeId),
Collection: collection,
})
- if rebultErr == nil {
+ if rebuildErr == nil {
rebuiltShardIds = resp.RebuiltShardIds
}
- return rebultErr
+ return rebuildErr
})
return
}