Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-540086 Code coverage: Refactor unused function downloadFilesSequentially() #875

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

sfc-gh-ext-simba-lb
Copy link
Contributor

Description

When executing a command the fileTransferAgent checks the srcFileSize and assigns it to either large or small file metadata. Large file metadata is uploaded/downloaded sequentially while small file metadata is uploaded/downloaded in parallel.

However, the srcFileSize for downloading is always 0, since we don't yet know the file size in the stage. So when it hits this block, it will always be added to small file metadata and then downloaded in parallel.

This PR is to remove the unused function.

Checklist

  • Code compiles correctly
  • Run make fmt to fix inconsistent formats
  • Run make lint to get lint errors and fix all of them
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary

@sfc-gh-ext-simba-lb sfc-gh-ext-simba-lb marked this pull request as ready for review August 3, 2023 17:28
@sfc-gh-ext-simba-lb sfc-gh-ext-simba-lb requested a review from a team as a code owner August 3, 2023 17:28
@sfc-gh-ext-simba-lb sfc-gh-ext-simba-lb merged commit 09e2e45 into master Aug 4, 2023
21 checks passed
@sfc-gh-ext-simba-lb sfc-gh-ext-simba-lb deleted the refactorDownloadFilesSequentially branch August 4, 2023 14:20
@github-actions github-actions bot locked and limited conversation to collaborators Aug 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants