Skip to content

Fix detection of changed shasums #1464

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

Merged
merged 1 commit into from
Feb 10, 2016
Merged

Conversation

rosen-vladimirov
Copy link
Contributor

Currently we are validating only the shasum of the files in order to detect which one are changed and sync only them.
However this is not correct as the file may be on a different location, but without changing its size.
Also in case you copy some of your files, their shasums might be the same as the original file.
In case the original file is already synced, its hash size will be found in the "oldShasums" and the new file will not be copied.
Validate by using both path and hash.

Fix unit tests and add some new ones.

@rosen-vladimirov rosen-vladimirov self-assigned this Feb 9, 2016
@rosen-vladimirov rosen-vladimirov added this to the 1.6.0 milestone Feb 9, 2016
@vchimev
Copy link

vchimev commented Feb 10, 2016

run ci

Currently we are validating only the shasum of the files in order to detect which one are changed and sync only them.
However this is not correct as the file may be on a different location, but without changing its size.
Also in case you copy some of your files, their shasums might be the same as the original file.
In case the original file is already synced, its hash size will be found in the "oldShasums" and the new file will not be copied.
Validate by using both path and hash.

Fix unit tests and add some new ones.
rosen-vladimirov added a commit that referenced this pull request Feb 10, 2016
@rosen-vladimirov rosen-vladimirov merged commit db9d002 into master Feb 10, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-livesync branch February 10, 2016 08:13
@rosen-vladimirov rosen-vladimirov restored the vladimirov/fix-livesync branch February 18, 2016 08:55
@Plamen5kov Plamen5kov deleted the vladimirov/fix-livesync branch October 25, 2016 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants