Repository navigation
Photo cache reads free space on Windows, and makes no grid pictures ahead when short of room - #267
Merged
Merged
Conversation
…head when short of room The cache's own free_space read only Unix's, so on Windows the limit and the grid floor never applied and grid pictures could fill the disk. It now uses quince_backup's reader, which reads Windows too. Short of room, a grid picture made is not kept, so prepare made (and fetched) every one again on each read of the library. wanted_steps now leaves thumbnail-sized steps out while the disk is short; only what is on screen is made.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The cache's own free_space read only Unix's, so on Windows the limit and the
grid floor never applied and grid pictures could fill the disk. It now uses
quince_backup's reader, which reads Windows too.
Short of room, a grid picture made is not kept, so prepare made (and fetched)
every one again on each read of the library. wanted_steps now leaves
thumbnail-sized steps out while the disk is short; only what is on screen is
made.
New tests:
the_caches_disk_says_how_much_room_it_has(every desktop; on Windows the old reader answered nothing),grid_pictures_are_kept_only_above_the_floor, andshort_of_room_no_grid_picture_is_made_ahead_and_nothing_twice, which fails on main. Found in a health audit after D#258 (a 57,000-photo library on Windows).