-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 previous download completion processing #11227
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
7fead8b
added status logging
mh0lt f9e1352
only print lists on not complete
mh0lt ee3e937
add available list
mh0lt b8d919b
save
Giulio2002 8ba2cba
save
Giulio2002 0318a39
save
Giulio2002 cdc753d
save
Giulio2002 a372b4f
save
Giulio2002 d1f1e3d
save
Giulio2002 d0d21f0
save
Giulio2002 219020c
save
Giulio2002 cdd3392
save
Giulio2002 3ce0d86
save
Giulio2002 16df018
save
Giulio2002 9f6b6b2
save
Giulio2002 930fc93
save
Giulio2002 6f311b4
save
Giulio2002 5cd4e19
save
Giulio2002 0094f56
save
Giulio2002 ed8e38a
save
Giulio2002 3ac67d6
save
Giulio2002 c64bc9e
save
Giulio2002 4e22685
save
Giulio2002 23d3c45
save
Giulio2002 302b04b
save
Giulio2002 b5ca96c
save
Giulio2002 5f1fcf4
save
Giulio2002 5f53f7f
Merge branch 'main' into dl_incomplete_downloads
mh0lt 0461d30
Merge branch 'good-prune' into dl_incomplete_downloads
mh0lt 1fdd7ed
loop print
mh0lt 7e9fd9c
loop print
mh0lt 88ed5f1
loop print
mh0lt 0982b17
update test
mh0lt 6c5d67f
update test
mh0lt 4918fe1
remove printers
mh0lt d8ac494
Updated slots comment
mh0lt 84d1347
use batch unless awaiting flush
mh0lt 385d7d0
don't lock on persist
mh0lt 034e99f
updated mods to v1.54.2-alpha-32
mh0lt fd2aa8b
Merge branch 'main' into dl_incomplete_downloads
mh0lt ec10b95
tidy go sum
mh0lt ef2476f
save
AskAlexSharov 6718b1a
Merge branch 'main' into dl_incomplete_downloads
AskAlexSharov 27d739a
save
AskAlexSharov c8db4f7
save
AskAlexSharov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only comment: i don't understand why
if awaitFlush == true
then Update, else Batch. Why not opposite?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thing: if
b == false
maybe you need use inversed logic:false
- not waiting forFlush
In another words: save in db
true
only after flush (after ensure that data will be good after restart), save in dbfalse
ASAP (to be conservative. to re-validate this piece after restart: even piece is good or bad on disk).!
keep in mind - that whenSet(false)
happens - db already may havetrue
(for example: 1. if after download finished we start with --downloader.verify and found broken piece 2. if file was removed manually and started with --downloader.verify).