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

import-url: use the same chunk size for istextblock() calls #6303

Merged
merged 1 commit into from Jul 18, 2021

Conversation

isidentical
Copy link
Contributor

If we assume the block size that we use in upload_fobj is always greater than 512 bytes (which is the case for all remotes as far as I can see), we could imitate just limit our chunk at that point. If we want to be more precise, we might need to create an additional buffer to pre-read the first 512 bytes into and a custom logic to dispatch those in the regular read which seems tricky (more details are on issue). Resolves #6160

@isidentical isidentical requested a review from a team as a code owner July 12, 2021 07:29
@isidentical isidentical requested a review from pmrowla July 12, 2021 07:29
@efiop efiop merged commit 1e81983 into iterative:master Jul 18, 2021
@efiop efiop added the bugfix fixes bug label Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixes bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

straight-to-remote: using different block size to compute md5 than the local hashing
2 participants