Skip to content

Commit

Permalink
Add data download parallel files download configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Qiu <[email protected]>
  • Loading branch information
qiuming-best committed Apr 11, 2024
1 parent 6ef3836 commit 89967c1
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)

Check warning on line 484 in pkg/restore/actions/csi/pvc_action.go

View check run for this annotation

Codecov / codecov/patch

pkg/restore/actions/csi/pvc_action.go#L484

Added line #L484 was not covered by tests
}
return dataDownload
}
Expand Down

0 comments on commit 89967c1

Please sign in to comment.