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

Fix race #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix race #1

wants to merge 1 commit into from

Conversation

josv
Copy link

@josv josv commented May 17, 2021

prev_offset is read by all worker threads and written by the thread with id 0 with the
assumption that the new value will not be used by the other threads. This is however not
enforced in any way and so worker threads with id != 0 might use the update value of prev_offset
erroneously.

prev_offset is read by all worker threads and written by the thread with id 0 with the
assumption that the new value will not be used by the other threads. This is however not
enforced in any way and so worker threads with id != 0 might use the update value of prev_offset
erroneously.
@mgorny
Copy link
Member

mgorny commented May 17, 2021

Jeez, I haven't really touched this since 2014, apparently. I will need to find some free time to look at the code and review the fix.

Did you find some use for squashdelta?

@josv
Copy link
Author

josv commented May 17, 2021

Yes, as part of a solution to send small updates to a resource constrained device. In this regard, I would like to retrieve the maximum size of the intermediate file when the merge operation is executed. Looking into the squashdelta implementation for that, but maybe you have some suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants