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

Skip local sync of files in progress #3

Open
nlmarco opened this Issue Jan 30, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@nlmarco
Contributor

nlmarco commented Jan 30, 2014

If the sync is interrupted (network error, power failure, user pressing Ctrl+C, other reason), a (maybe very big) file might still be inProgress.

When we resume the sync, we currently generate hashes for all files, including those being inProgress. This is unnecessary (they are not replicated to any other repo, anyway) and consumes a lot of time (if the file is big).

We should thus skip files that are inProgress in the local sync.

@nlmarco

This comment has been minimized.

Contributor

nlmarco commented Jan 31, 2014

We should then - of course - update the persistent _FileChunk_s already directly when a chunk is written. Otherwise the next sync would not skip the stuff that is already done and instead start from scratch again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment