Repository navigation
fix(model): loop-break regression while block copying in puller - #10069
Merged
Merged
Conversation
Possibly/likely the man cause for the issues tomasz is reporting in the forum: First relevant reply: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/204 Reply with profiles I used to troubleshoot: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/208 I don't particularly like my fix - to me this asks for better names (too many "blocks") or probably refactors. I also found at least one more bug (fd not closed at end of loop, only end of entire function), but haven't yet had the time/energy to find a (nice) solution. Likely that's going to benefit from refactoring parts of this into a separate function too. Regression introduced when splitting the DB (second nested loop added): cf1cf85
calmh
approved these changes
Apr 24, 2025
calmh
left a comment
Member
There was a problem hiding this comment.
Nice I thought I'd caught these
calmh
added a commit
to calmh/syncthing
that referenced
this pull request
Apr 24, 2025
* v2: fix(model): loop-break regression while block copying in puller (syncthing#10069) feat(config): add option for audit file (fixes syncthing#9481) (syncthing#10066) chore(api): log X-Forwarded-For (syncthing#10035) chore(syncthing): remove "default" folder concept (syncthing#10068) chore(gui): update dependency copyrights, add script for periodic maintenance (syncthing#10067) chore(gui, man, authors): update docs, translations, and contributors chore(syncthing): remove support for TLS 1.2 sync connections (syncthing#10064) fix(osutil): give threads same I/O priority on Linux (syncthing#10063) chore(stun): switch lookup warning to debug level chore(gui, man, authors): update docs, translations, and contributors
1 task
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Possibly/likely the man cause for the issues tomasz is reporting in the forum:
First relevant reply: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/204 Reply with profiles I used to troubleshoot: https://forum.syncthing.net/t/syncthing-on-sqlite-help-test/23981/208
I don't particularly like my fix - to me this asks for better names (too many "blocks") or probably refactors. I also found at least one more bug (fd not closed at end of loop, only end of entire function), but haven't yet had the time/energy to find a (nice) solution. Likely that's going to benefit from refactoring parts of this into a separate function too.
Regression introduced when splitting the DB (second nested loop added):
cf1cf85