Skip to content

Commit

Permalink
Merge pull request #7653 from qiuming-best/data-mover-restore-parallel
Browse files Browse the repository at this point in the history
Add data download parallel files download configuration
  • Loading branch information
Lyndon-Li authored Apr 11, 2024
2 parents 6ef3836 + 89967c1 commit 500e5ae
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/restore/actions/csi/pvc_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,12 +481,7 @@ func newDataDownload(
},
}
if restore.Spec.UploaderConfig != nil {
dataDownload.Spec.DataMoverConfig = make(map[string]string)
if boolptr.IsSetToTrue(restore.Spec.UploaderConfig.WriteSparseFiles) {
dataDownload.Spec.DataMoverConfig[uploaderUtil.WriteSparseFiles] = "true"
} else {
dataDownload.Spec.DataMoverConfig[uploaderUtil.WriteSparseFiles] = "false"
}
dataDownload.Spec.DataMoverConfig = uploaderUtil.StoreRestoreConfig(restore.Spec.UploaderConfig)
}
return dataDownload
}
Expand Down

0 comments on commit 500e5ae

Please sign in to comment.