-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Make Cache::removeChildren non recursive #20724
Conversation
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.
🐘
a256c52
to
d129bb0
Compare
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.
Code looks good 👍
Currently the "add new files during scanning" call stack is smaller than the "remove deleted files during scanning" call stack. This can lead to the scanner adding folders in the folder tree that are to deep to be removed. This changes the `removeChildren` logic to be non recursive so there is no limit to the depth of the folder tree during removal Signed-off-by: Robin Appelman <robin@icewind.nl>
d129bb0
to
5af7d92
Compare
Rebased to get newer CI output and then this is ready for merge. |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
CI succeeded in the old commit. I just added one to accept the warning of Psalm for now. Because changing the reviewed code would introduce a new risk here. |
Psalm happy now -> merge |
Currently the "add new files during scanning" call stack is smaller than
the "remove deleted files during scanning" call stack. This can lead to
the scanner adding folders in the folder tree that are to deep to be
removed.
This changes the
removeChildren
logic to be non recursive so there isno limit to the depth of the folder tree during removal
Signed-off-by: Robin Appelman robin@icewind.nl