]> source.dussan.org Git - nextcloud-server.git/commit
Make Cache::removeChildren non recursive
authorRobin Appelman <robin@icewind.nl>
Wed, 29 Apr 2020 14:07:51 +0000 (16:07 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 20 Aug 2020 13:37:02 +0000 (15:37 +0200)
commit5af7d921a9dcbd03b739d612af203b3d5b9b3605
treeec3ace427c66d695817c4ec71db2439a98b247a9
parent03603db486debbb31dfa05486f3b10338a28b50c
Make Cache::removeChildren non recursive

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>
lib/private/Files/Cache/Cache.php
lib/private/Files/Cache/CacheQueryBuilder.php