Repository navigation
handle completely unscanned storages in the background scanner - #23561
2 commits merged into
Conversation
|
By analyzing the blame information on this pull request, we identified @PVince81, @nickvergessen and @mmattel to be potential reviewers |
There was a problem hiding this comment.
We should also catch the exceptions here.
351193f to
43ab870
Compare
There was a problem hiding this comment.
and what about this hook ?
It rather looks like the "try" block should be moved to a function and called from both places ?
There was a problem hiding this comment.
Another quicker solution: only scan the root, non-recursive, to auto-create the root entry with size -1. And then proceed with the regular while
There was a problem hiding this comment.
Another quicker solution: only scan the root, non-recursive, to auto-create the root entry with size -1. And then proceed with the regular while
A bit more ugly imo and will result in the same thing (the entire thing being scanned)
43ab870 to
8a2c6ac
Compare
|
Second review @mmattel @Xenopathic @nickvergessen @blizzz ? @karlitschek backport to stable9 ? |
|
@icewind1991 please fix the unit test |
8a2c6ac to
6485d95
Compare
|
great. please backport |
Fixed |
|
stable9: #23576 |
|
UPDATE: Question: There is a long time between adding a storage and starting the background scan. |
|
@mmattel good point... the reason it starts late is because of the time where cron runs. |
|
Just thinking around:
In the current implementation, what happens on 3? |
The background job is not storage specific so it will be handled just fine. For now I would just go with the current approach since it's only for showing the folder size in the web ui, the external storage will always be accessible no matter when or if the background job fires |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #13876
previously if there were no cache entries for a storage (folder containing the storage has never been visited after the storage has been added) the background scanner is not triggered, this fixes it by triggering a full scan if the storage is unscanned.
cc @PVince81 @mmattel